T
- the Protocol Buffers GeneratedMessageV3
type handled by
this SerializerHook
.public abstract class ProtobufSerializerHook<T extends com.google.protobuf.GeneratedMessageV3> extends Object implements SerializerHook<T>
To use it, create a JAR containing the serializer hook class and
META-INF/services/com.hazelcast.SerializerHook
, a plain-text
file containing its fully qualified name. Visit Jet's
Serialization Guide for more details.
Modifier | Constructor and Description |
---|---|
protected |
ProtobufSerializerHook(Class<T> clazz,
int typeId)
Creates Protocol Buffers v3 serializer hook.
|
Modifier and Type | Method and Description |
---|---|
Serializer |
createSerializer()
Creates a new serializer for the serialization type
|
Class<T> |
getSerializationType()
Returns the actual class type of the serialized object
|
boolean |
isOverwritable()
Defines if this serializer can be overridden by defining a custom
serializer in the configurations (codebase or configuration file)
|
public Class<T> getSerializationType()
SerializerHook
getSerializationType
in interface SerializerHook<T extends com.google.protobuf.GeneratedMessageV3>
public Serializer createSerializer()
SerializerHook
createSerializer
in interface SerializerHook<T extends com.google.protobuf.GeneratedMessageV3>
public boolean isOverwritable()
SerializerHook
isOverwritable
in interface SerializerHook<T extends com.google.protobuf.GeneratedMessageV3>
Copyright © 2022 Hazelcast, Inc.. All rights reserved.