Package io.atomix.utils.serializer
Class NamespaceTypeConfig
- java.lang.Object
-
- io.atomix.utils.serializer.NamespaceTypeConfig
-
-
Constructor Summary
Constructors Constructor Description NamespaceTypeConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetId()Returns the type identifier.Class<? extends com.esotericsoftware.kryo.Serializer>getSerializer()Returns the serializer class.Class<?>getType()Returns the serializable type.NamespaceTypeConfigsetId(Integer id)Sets the type identifier.NamespaceTypeConfigsetSerializer(Class<? extends com.esotericsoftware.kryo.Serializer> serializer)Sets the serializer class.NamespaceTypeConfigsetType(Class<?> type)Sets the serializable type.
-
-
-
Method Detail
-
getType
public Class<?> getType()
Returns the serializable type.- Returns:
- the serializable type
-
setType
public NamespaceTypeConfig setType(Class<?> type)
Sets the serializable type.- Parameters:
type- the serializable type- Returns:
- the type configuration
-
getId
public Integer getId()
Returns the type identifier.- Returns:
- the type identifier
-
setId
public NamespaceTypeConfig setId(Integer id)
Sets the type identifier.- Parameters:
id- the type identifier- Returns:
- the type configuration
-
getSerializer
public Class<? extends com.esotericsoftware.kryo.Serializer> getSerializer()
Returns the serializer class.- Returns:
- the serializer class
-
setSerializer
public NamespaceTypeConfig setSerializer(Class<? extends com.esotericsoftware.kryo.Serializer> serializer)
Sets the serializer class.- Parameters:
serializer- the serializer class- Returns:
- the type configuration
-
-