public final class ClusterDistributedObjectSerializer extends Object implements com.hazelcast.nio.serialization.StreamSerializer<ClusterDistributedObject<Object>>
StreamSerializer to handle instances of ClusterDistributedObject
It receives and returns instances of ClusterDistributedObject although it actually writes instances of
DistributedValue, this allows each application to use its own ObjectSerializer although this instance
is shared across all of them| Constructor and Description |
|---|
ClusterDistributedObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureInto(com.hazelcast.client.config.ClientConfig hzClientConfig) |
static void |
configureInto(com.hazelcast.config.Config hazelcastConfig)
Registers this
StreamSerializer into the given hazelcastConfig |
void |
destroy() |
int |
getTypeId() |
ClusterDistributedObject<Object> |
read(com.hazelcast.nio.ObjectDataInput in)
Reads a
DistributedValue and returns it as a ClusterDistributedObject |
void |
write(com.hazelcast.nio.ObjectDataOutput out,
ClusterDistributedObject object)
Writes the
DistributedValue which results of invoking ClusterDistributedObject.serialize() on object
|
public static void configureInto(com.hazelcast.config.Config hazelcastConfig)
StreamSerializer into the given hazelcastConfighazelcastConfig - the Config of the HazelcastInstance in which this serializer livespublic static void configureInto(com.hazelcast.client.config.ClientConfig hzClientConfig)
public void write(com.hazelcast.nio.ObjectDataOutput out,
ClusterDistributedObject object)
throws IOException
DistributedValue which results of invoking ClusterDistributedObject.serialize() on object
write in interface com.hazelcast.nio.serialization.StreamSerializer<ClusterDistributedObject<Object>>IOExceptionpublic ClusterDistributedObject<Object> read(com.hazelcast.nio.ObjectDataInput in) throws IOException
DistributedValue and returns it as a ClusterDistributedObject read in interface com.hazelcast.nio.serialization.StreamSerializer<ClusterDistributedObject<Object>>IOExceptionpublic int getTypeId()
getTypeId in interface com.hazelcast.nio.serialization.Serializerpublic void destroy()
destroy in interface com.hazelcast.nio.serialization.SerializerCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.