@Beta @PrivateApi public final class CompactSerializationConfigAccessor extends Object
CompactSerializationConfig
.
This is intended to be used while registering explicit and reflective serializers
via 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
.
Modifier and Type | Method and Description |
---|---|
static Map<String,com.hazelcast.internal.util.TriTuple<String,String,String>> |
getNamedRegistrations(CompactSerializationConfig compactSerializationConfig)
Returns the map of type names to config registrations.
|
static Map<String,com.hazelcast.internal.util.TriTuple<Class,String,CompactSerializer>> |
getRegistrations(CompactSerializationConfig compactSerializationConfig)
Returns the map of the type names to programmatic registrations.
|
static void |
registerExplicitSerializer(CompactSerializationConfig compactSerializationConfig,
String className,
String typeName,
String serializerClassName)
Registers an explicit compact serializer for the given class and type name.
|
static void |
registerReflectiveSerializer(CompactSerializationConfig compactSerializationConfig,
String className)
Registers a reflective compact serializer for the given class name.
|
public static void registerExplicitSerializer(CompactSerializationConfig compactSerializationConfig, String className, String typeName, String serializerClassName)
public static void registerReflectiveSerializer(CompactSerializationConfig compactSerializationConfig, String className)
public static Map<String,com.hazelcast.internal.util.TriTuple<String,String,String>> getNamedRegistrations(CompactSerializationConfig compactSerializationConfig)
public static Map<String,com.hazelcast.internal.util.TriTuple<Class,String,CompactSerializer>> getRegistrations(CompactSerializationConfig compactSerializationConfig)
Copyright © 2022 Hazelcast, Inc.. All rights reserved.