Package akka.serialization
Class AsyncSerializerWithStringManifest
- java.lang.Object
- 
- akka.serialization.SerializerWithStringManifest
- 
- akka.serialization.AsyncSerializerWithStringManifest
 
 
- 
- All Implemented Interfaces:
- AsyncSerializer,- Serializer
 - Direct Known Subclasses:
- AsyncSerializerWithStringManifestCS
 
 public abstract class AsyncSerializerWithStringManifest extends SerializerWithStringManifest implements AsyncSerializer Scala API: Async serializer with string manifest that delegates synchronous calls to the asynchronous calls and blocks.
- 
- 
Constructor SummaryConstructors Constructor Description AsyncSerializerWithStringManifest(ExtendedActorSystem system)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromBinary(byte[] bytes, java.lang.String manifest)Produces an object from an array of bytes, with an optional type-hint.byte[]toBinary(java.lang.Object o)Serializes the given object into an Array of Byte.- 
Methods inherited from class akka.serialization.SerializerWithStringManifestfromBinary, identifier, includeManifest, manifest
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface akka.serialization.AsyncSerializerfromBinaryAsync, toBinaryAsync
 - 
Methods inherited from interface akka.serialization.SerializerfromBinary, fromBinary
 
- 
 
- 
- 
- 
Constructor Detail- 
AsyncSerializerWithStringManifestpublic AsyncSerializerWithStringManifest(ExtendedActorSystem system) 
 
- 
 - 
Method Detail- 
fromBinarypublic final java.lang.Object fromBinary(byte[] bytes, java.lang.String manifest)Description copied from class:SerializerWithStringManifestProduces an object from an array of bytes, with an optional type-hint.It's recommended to throw java.io.NotSerializableExceptioninfromBinaryif the manifest is unknown. This makes it possible to introduce new message types and send them to nodes that don't know about them. This is typically needed when performing rolling upgrades, i.e. running a cluster with mixed versions for while.NotSerializableExceptionis treated as a transient problem in the TCP based remoting layer. The problem will be logged and message is dropped. Other exceptions will tear down the TCP connection because it can be an indication of corrupt bytes from the underlying transport.- Specified by:
- fromBinaryin class- SerializerWithStringManifest
 
 - 
toBinarypublic final byte[] toBinary(java.lang.Object o) Description copied from class:SerializerWithStringManifestSerializes the given object into an Array of Byte.Note that the array must not be mutated by the serializer after it has been returned. - Specified by:
- toBinaryin interface- Serializer
- Specified by:
- toBinaryin class- SerializerWithStringManifest
 
 
- 
 
-