S
- the type of stateE
- the type of eventpublic class KryoStateMachineSerialisationService<S,E> extends AbstractKryoStateMachineSerialisationService<S,E>
StateMachineSerialisationService
using kryo.pool
Constructor and Description |
---|
KryoStateMachineSerialisationService() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureKryoInstance(com.esotericsoftware.kryo.Kryo kryo)
Subclasses implement this to configure the kryo instance.
|
protected <T> T |
doDecode(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
java.lang.Class<T> type)
Subclasses implement this method to decode with Kryo.
|
protected void |
doEncode(com.esotericsoftware.kryo.Kryo kryo,
java.lang.Object object,
com.esotericsoftware.kryo.io.Output output)
Subclasses implement this method to encode with Kryo.
|
deserialiseStateMachineContext, serialiseStateMachineContext
public KryoStateMachineSerialisationService()
protected void doEncode(com.esotericsoftware.kryo.Kryo kryo, java.lang.Object object, com.esotericsoftware.kryo.io.Output output)
AbstractKryoStateMachineSerialisationService
doEncode
in class AbstractKryoStateMachineSerialisationService<S,E>
kryo
- the Kryo instanceobject
- the object to encodeoutput
- the Kryo Output instanceprotected <T> T doDecode(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, java.lang.Class<T> type)
AbstractKryoStateMachineSerialisationService
doDecode
in class AbstractKryoStateMachineSerialisationService<S,E>
T
- the type for decoded objectkryo
- the Kryo instanceinput
- the Kryo Input instancetype
- the class of the decoded objectprotected void configureKryoInstance(com.esotericsoftware.kryo.Kryo kryo)
AbstractKryoStateMachineSerialisationService
configureKryoInstance
in class AbstractKryoStateMachineSerialisationService<S,E>
kryo
- the kryo instance