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...
  1. Deserialization will fail if you have any synchronized blocks (monitor locks).
  2. The classes that make up the current state of your coroutine must be serializable (must implement Serializable).
  3. The variables/operands that make up the current state of your coroutine must be serializable (must either be primitives or implement Serializable).