Examples of prepareForNextCycle()


Examples of com.netflix.zeno.fastblob.FastBlobStateEngine.prepareForNextCycle()

        /// server is restarted with updated serializers
        FastBlobStateEngine stateEngine2 = new FastBlobStateEngine(state2Factory());

        /// deserialize the state engine from the previous server (with the old serializers)
        stateEngine2.deserializeFrom(new ByteArrayInputStream(serializedStateEngine1.toByteArray()));
        stateEngine2.prepareForNextCycle();

        /// add new data to the state engine, with some overlap
        TypeC c1 = new TypeC(1);
        TypeC c2 = new TypeC(2);
        TypeC c3 = new TypeC(3);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.