public class IntSerializer extends java.lang.Object implements BaseSerializer, ByteBufferSerializer
Constructor and Description |
---|
IntSerializer(ExtendedActorSystem system) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromBinary(byte[] bytes,
scala.Option<java.lang.Class<?>> manifest)
Produces an object from an array of bytes, with an optional type-hint;
the class should be loaded using ActorSystem.dynamicAccess.
|
java.lang.Object |
fromBinary(java.nio.ByteBuffer buf,
java.lang.String manifest)
Produces an object from a
ByteBuffer , with an optional type-hint;
the class should be loaded using ActorSystem.dynamicAccess. |
int |
identifier()
Globally unique serialization identifier configured in the
reference.conf . |
boolean |
includeManifest()
Returns whether this serializer needs a manifest in the fromBinary method
|
ExtendedActorSystem |
system()
Actor system which is required by most serializer implementations.
|
byte[] |
toBinary(java.lang.Object o)
Serializes the given object into an Array of Byte
|
void |
toBinary(java.lang.Object o,
java.nio.ByteBuffer buf)
Serializes the given object into the
ByteBuffer . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifierFromConfig, SerializationIdentifiers
fromBinary, fromBinary
public IntSerializer(ExtendedActorSystem system)
public int identifier()
BaseSerializer
reference.conf
.
identifier
in interface BaseSerializer
identifier
in interface Serializer
public ExtendedActorSystem system()
BaseSerializer
system
in interface BaseSerializer
public boolean includeManifest()
Serializer
includeManifest
in interface Serializer
public void toBinary(java.lang.Object o, java.nio.ByteBuffer buf)
ByteBufferSerializer
ByteBuffer
.toBinary
in interface ByteBufferSerializer
o
- (undocumented)buf
- (undocumented)public java.lang.Object fromBinary(java.nio.ByteBuffer buf, java.lang.String manifest)
ByteBufferSerializer
ByteBuffer
, with an optional type-hint;
the class should be loaded using ActorSystem.dynamicAccess.fromBinary
in interface ByteBufferSerializer
buf
- (undocumented)manifest
- (undocumented)public byte[] toBinary(java.lang.Object o)
Serializer
toBinary
in interface Serializer
o
- (undocumented)public java.lang.Object fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)
Serializer
fromBinary
in interface Serializer
bytes
- (undocumented)manifest
- (undocumented)