Package com.hazelcast.config
Class CompactSerializationConfigAccessor
java.lang.Object
com.hazelcast.config.CompactSerializationConfigAccessor
An accessor for the package-private fields of the
CompactSerializationConfig
.
This is intended to be used while registering serializers and Compact
serializable classes with declarative configuration. This kind of accessor is
necessary as the register methods on the CompactSerializationConfig
accepts concrete Class
or
CompactSerializer
instances
rather than the string representation of the fully qualified class names.
Also, it enables us to access registered classes using the programmatic API,
without providing a public API on the CompactSerializationConfig
.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of Compact serializable class names.static Map<String,
com.hazelcast.internal.util.TriTuple<Class, String, CompactSerializer>> Returns the map of the type names to programmatic registrations.Returns the list of Compact serializer class names.static void
registerClass
(CompactSerializationConfig config, String className) Registers a reflective compact serializer for the given class name.static void
registerSerializer
(CompactSerializationConfig config, String serializerClassName) Registers an explicit compact serializer for the given class and type name.
-
Method Details
-
registerSerializer
public static void registerSerializer(CompactSerializationConfig config, String serializerClassName) Registers an explicit compact serializer for the given class and type name. -
registerClass
Registers a reflective compact serializer for the given class name. The type name will be the same with the class name. -
getSerializerClassNames
Returns the list of Compact serializer class names. -
getCompactSerializableClassNames
Returns the list of Compact serializable class names. -
getRegistrations
public static Map<String,com.hazelcast.internal.util.TriTuple<Class, getRegistrationsString, CompactSerializer>> (CompactSerializationConfig config) Returns the map of the type names to programmatic registrations.
-