Class CoroutineWriter.DefaultCoroutineSerializer

  • All Implemented Interfaces:
    CoroutineWriter.CoroutineSerializer
    Enclosing class:
    CoroutineWriter

    public static final class CoroutineWriter.DefaultCoroutineSerializer
    extends java.lang.Object
    implements CoroutineWriter.CoroutineSerializer
    Default implementation of CoroutineWriter.CoroutineSerializer (uses Java's built-in serialization mechanism). This implementation has the following restrictions...
    1. Serialization 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).