Package io.tarantool.driver.api
Interface MessagePackMapperBuilder
-
- All Known Implementing Classes:
DefaultMessagePackMapper.Builder
public interface MessagePackMapperBuilderBuilder forMessagePackMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessagePackMapperbuild()Build the mapper instanceMessagePackMapperBuilderwithDefaultArrayValueConverter()Configure the mapper with defaultMP_ARRAYentity toListconverterMessagePackMapperBuilderwithDefaultListObjectConverter()Configure the mapper with defaultListtoMP_ARRAYentity converterMessagePackMapperBuilderwithDefaultMapObjectConverter()Configure the mapper with defaultMaptoMP_MAPentity converterMessagePackMapperBuilderwithDefaultMapValueConverter()Configure the mapper with defaultMP_MAPentity toMapconverter<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_MAPentity toMapconverter- Returns:
- builder
-
withDefaultMapObjectConverter
MessagePackMapperBuilder withDefaultMapObjectConverter()
Configure the mapper with defaultMaptoMP_MAPentity converter- Returns:
- builder
-
withDefaultArrayValueConverter
MessagePackMapperBuilder withDefaultArrayValueConverter()
Configure the mapper with defaultMP_ARRAYentity toListconverter- Returns:
- builder
-
withDefaultListObjectConverter
MessagePackMapperBuilder withDefaultListObjectConverter()
Configure the mapper with defaultListtoMP_ARRAYentity 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
-
-