Package com.offbynull.coroutines.user
Class CoroutineReader.DefaultCoroutineDeserializer
java.lang.Object
com.offbynull.coroutines.user.CoroutineReader.DefaultCoroutineDeserializer
- All Implemented Interfaces:
CoroutineReader.CoroutineDeserializer
- Enclosing class:
CoroutineReader
public static final class CoroutineReader.DefaultCoroutineDeserializer
extends Object
implements CoroutineReader.CoroutineDeserializer
Default implementation of
CoroutineReader.CoroutineDeserializer (uses Java's built-in serialization mechanism). This implementation has the
the following restrictions...
- Deserialization will fail if you have any synchronized blocks (monitor locks).
- The classes that make up the current state of your coroutine must be serializable (must implement
Serializable). - The variables/operands that make up the current state of your coroutine must be serializable (must either be primitives or
implement
Serializable).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultCoroutineDeserializer
public DefaultCoroutineDeserializer()
-
-
Method Details
-
deserialize
Description copied from interface:CoroutineReader.CoroutineDeserializerDeserializes a coroutine.- Specified by:
deserializein interfaceCoroutineReader.CoroutineDeserializer- Parameters:
data- byte array to deserialize- Returns:
- deserialized state
-