Package io.dapr.actors.runtime
Class ActorObjectSerializer
- java.lang.Object
-
- io.dapr.client.ObjectSerializer
-
- io.dapr.actors.runtime.ActorObjectSerializer
-
public class ActorObjectSerializer extends ObjectSerializer
Serializes and deserializes internal objects.
-
-
Field Summary
-
Fields inherited from class io.dapr.client.ObjectSerializer
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description ActorObjectSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdeserialize(byte[] content, Class<T> clazz)byte[]serialize(Object state)-
Methods inherited from class io.dapr.client.ObjectSerializer
deserialize, parseNode
-
-
-
-
Method Detail
-
serialize
public byte[] serialize(Object state) throws IOException
- Overrides:
serializein classObjectSerializer- Throws:
IOException
-
deserialize
public <T> T deserialize(byte[] content, Class<T> clazz) throws IOException- Overrides:
deserializein classObjectSerializer- Throws:
IOException
-
-