Package cz.o2.proxima.core.scheme
Interface ValueSerializerFactory
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AvroSerializerFactory
,BytesSerializer
,DoubleSerializer
,FloatSerializer
,IntSerializer
,JavaSerializer
,JsonProtoSerializerFactory
,JsonSerializer
,LongSerializer
,ProtoSerializerFactory
,SchemaRegistrySerializerFactory
,StringUtf8Serializer
@Stable public interface ValueSerializerFactory extends java.io.Serializable
Factory forValueSerializer
. The serializer has a specific scheme (e.g. proto:).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canProvideTransactionSerializer()
default TransactionSerializerSchemeProvider
createTransactionSerializerSchemeProvider()
java.lang.String
getAcceptableScheme()
Retrieve scheme that of URI that this parser accepts.default java.lang.String
getClassName(java.net.URI specifier)
Retrieve class type for given scheme.<T> ValueSerializer<T>
getValueSerializer(java.net.URI specifier)
GetValueSerializer
for given scheme.
-
-
-
Method Detail
-
getAcceptableScheme
java.lang.String getAcceptableScheme()
Retrieve scheme that of URI that this parser accepts.- Returns:
- name of acceptable scheme of this factory
-
getValueSerializer
<T> ValueSerializer<T> getValueSerializer(java.net.URI specifier)
GetValueSerializer
for given scheme.- Type Parameters:
T
- type of deserialized data- Parameters:
specifier
- URI specifier of this data type- Returns:
ValueSerializer
for the scheme
-
getClassName
default java.lang.String getClassName(java.net.URI specifier)
Retrieve class type for given scheme.- Parameters:
specifier
- URI specifier of this data type- Returns:
- full name of class
- Throws:
java.lang.IllegalArgumentException
- in case of invalid specifier
-
canProvideTransactionSerializer
default boolean canProvideTransactionSerializer()
- Returns:
true
if this serializer can provideTransactionSerializerSchemeProvider
.
-
createTransactionSerializerSchemeProvider
default TransactionSerializerSchemeProvider createTransactionSerializerSchemeProvider()
-
-