Package io.tarantool.driver.api
Interface MessagePackMapperBuilder
-
- All Known Implementing Classes:
DefaultMessagePackMapper.Builder
public interface MessagePackMapperBuilder
Builder forMessagePackMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessagePackMapper
build()
Build the mapper instanceMessagePackMapperBuilder
withDefaultArrayValueConverter()
Configure the mapper with defaultMP_ARRAY
entity toList
converterMessagePackMapperBuilder
withDefaultListObjectConverter()
Configure the mapper with defaultList
toMP_ARRAY
entity converterMessagePackMapperBuilder
withDefaultMapObjectConverter()
Configure the mapper with defaultMap
toMP_MAP
entity converterMessagePackMapperBuilder
withDefaultMapValueConverter()
Configure the mapper with defaultMP_MAP
entity toMap
converter<V extends org.msgpack.value.Value,O>
MessagePackMapperBuilderwithObjectConverter(ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter<V extends org.msgpack.value.Value,O>
MessagePackMapperBuilderwithObjectConverter(Class<O> objectClass, ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter<V extends org.msgpack.value.Value,O>
MessagePackMapperBuilderwithObjectConverter(Class<O> objectClass, Class<V> valueClass, ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter<V extends org.msgpack.value.Value,O>
MessagePackMapperBuilderwithValueConverter(org.msgpack.value.ValueType valueType, ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter<V extends org.msgpack.value.Value,O>
MessagePackMapperBuilderwithValueConverter(org.msgpack.value.ValueType valueType, Class<O> objectClass, ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter
-
-
-
Method Detail
-
withDefaultMapValueConverter
MessagePackMapperBuilder withDefaultMapValueConverter()
Configure the mapper with defaultMP_MAP
entity toMap
converter- Returns:
- builder
-
withDefaultMapObjectConverter
MessagePackMapperBuilder withDefaultMapObjectConverter()
Configure the mapper with defaultMap
toMP_MAP
entity converter- Returns:
- builder
-
withDefaultArrayValueConverter
MessagePackMapperBuilder withDefaultArrayValueConverter()
Configure the mapper with defaultMP_ARRAY
entity toList
converter- Returns:
- builder
-
withDefaultListObjectConverter
MessagePackMapperBuilder withDefaultListObjectConverter()
Configure the mapper with defaultList
toMP_ARRAY
entity converter- Returns:
- builder
-
withValueConverter
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withValueConverter(org.msgpack.value.ValueType valueType, ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter- Type Parameters:
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returns- Parameters:
valueType
- MessagePack source typeconverter
- MessagePack entity-to-object and object-to-entity converter- Returns:
- builder
- See Also:
DefaultMessagePackMapper.registerValueConverter(ValueType, ValueConverter)
-
withValueConverter
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withValueConverter(org.msgpack.value.ValueType valueType, Class<O> objectClass, ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter- Type Parameters:
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returns- Parameters:
valueType
- MessagePack source typeobjectClass
- target object classconverter
- MessagePack entity-to-object and object-to-entity converter- Returns:
- builder
- See Also:
DefaultMessagePackMapper.registerValueConverter(ValueType, Class, ValueConverter)
-
withObjectConverter
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter- Type Parameters:
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returns- Parameters:
converter
- MessagePack entity-to-object and object-to-entity converter- Returns:
- builder
-
withObjectConverter
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(Class<O> objectClass, ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter- Type Parameters:
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returns- Parameters:
objectClass
- source object classconverter
- MessagePack entity-to-object and object-to-entity converter- Returns:
- builder
-
withObjectConverter
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(Class<O> objectClass, Class<V> valueClass, ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter- Type Parameters:
V
- MessagePack entity typeO
- object type- Parameters:
objectClass
- source object classvalueClass
- target object classconverter
- MessagePack entity-to-object and object-to-entity converter- Returns:
- builder
-
build
MessagePackMapper build()
Build the mapper instance- Returns:
- a new mapper instance
-
-