Package io.pravega.client.tables.impl
Class KeyValueTableFactoryImpl
- java.lang.Object
-
- io.pravega.client.tables.impl.KeyValueTableFactoryImpl
-
- All Implemented Interfaces:
KeyValueTableFactory,java.lang.AutoCloseable
public class KeyValueTableFactoryImpl extends java.lang.Object implements KeyValueTableFactory
Implementation forKeyValueTableFactory.
-
-
Constructor Summary
Constructors Constructor Description KeyValueTableFactoryImpl(@NonNull java.lang.String scope, @NonNull Controller controller, @NonNull ConnectionPool connectionPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes theKeyValueTableFactory.<KeyT,ValueT>
KeyValueTable<KeyT,ValueT>forKeyValueTable(@NonNull java.lang.String keyValueTableName, @NonNull Serializer<KeyT> keySerializer, @NonNull Serializer<ValueT> valueSerializer, @NonNull KeyValueTableClientConfiguration clientConfiguration)Creates a newKeyValueTablethat provides access to a Pravega Key-Value Table.
-
-
-
Constructor Detail
-
KeyValueTableFactoryImpl
@ConstructorProperties({"scope","controller","connectionPool"}) public KeyValueTableFactoryImpl(@NonNull @NonNull java.lang.String scope, @NonNull @NonNull Controller controller, @NonNull @NonNull ConnectionPool connectionPool)
-
-
Method Detail
-
forKeyValueTable
public <KeyT,ValueT> KeyValueTable<KeyT,ValueT> forKeyValueTable(@NonNull @NonNull java.lang.String keyValueTableName, @NonNull @NonNull Serializer<KeyT> keySerializer, @NonNull @NonNull Serializer<ValueT> valueSerializer, @NonNull @NonNull KeyValueTableClientConfiguration clientConfiguration)
Description copied from interface:KeyValueTableFactoryCreates a newKeyValueTablethat provides access to a Pravega Key-Value Table.- Specified by:
forKeyValueTablein interfaceKeyValueTableFactory- Type Parameters:
KeyT- Key Type.ValueT- Value Type.- Parameters:
keyValueTableName- Name of theKeyValueTable.keySerializer- ASerializerforKeyValueTableKeys. Refer to theKeyValueTableJavadoc for constraints relating to the size of the serialization.valueSerializer- ASerializerforKeyValueTableValues. Refer to theKeyValueTableJavadoc for constraints relating to the size of the serialization.clientConfiguration- AKeyValueTableClientConfigurationto use for configuring theKeyValueTableclient.- Returns:
- A
KeyValueTablethat provides access to the requested Key-Value Table.
-
close
public void close()
Description copied from interface:KeyValueTableFactoryCloses theKeyValueTableFactory. This will close any connections created through it.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceKeyValueTableFactory- See Also:
AutoCloseable.close()
-
-