Package akka.serialization
Class JSerializer
- java.lang.Object
- 
- akka.serialization.JSerializer
 
- 
- All Implemented Interfaces:
- Serializer
 - Direct Known Subclasses:
- AbstractSerializationSupport
 
 public abstract class JSerializer extends java.lang.Object implements Serializer Java API for creating a Serializer: make sure to include a constructor which takes exactly one argument of typeExtendedActorSystem, because that is the preferred constructor which will be invoked when reflectively instantiating the JSerializer (also possible with empty constructor).
- 
- 
Constructor SummaryConstructors Constructor Description JSerializer()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromBinary(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.protected abstract java.lang.ObjectfromBinaryJava(byte[] bytes, java.lang.Class<?> manifest)This method must be implemented, manifest may be null.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface akka.serialization.SerializerfromBinary, fromBinary, identifier, includeManifest, toBinary
 
- 
 
- 
- 
- 
Method Detail- 
fromBinarypublic final java.lang.Object fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest) throws java.io.NotSerializableExceptionDescription copied from interface:SerializerProduces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.- Specified by:
- fromBinaryin interface- Serializer
- Throws:
- java.io.NotSerializableException
 
 - 
fromBinaryJavaprotected abstract java.lang.Object fromBinaryJava(byte[] bytes, java.lang.Class<?> manifest)This method must be implemented, manifest may be null.
 
- 
 
-