public interface KeyValueTableFactory
extends java.lang.AutoCloseable
KeyValueTable
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the
KeyValueTableFactory . |
<KeyT,ValueT> |
forKeyValueTable(@NonNull java.lang.String keyValueTableName,
@NonNull Serializer<KeyT> keySerializer,
@NonNull Serializer<ValueT> valueSerializer,
@NonNull KeyValueTableClientConfiguration clientConfiguration)
Creates a new
KeyValueTable that provides access to a Pravega Key-Value Table. |
static KeyValueTableFactory |
withScope(java.lang.String scope,
ClientConfig config)
Creates a new instance of
KeyValueTableFactory . |
static KeyValueTableFactory withScope(java.lang.String scope, ClientConfig config)
KeyValueTableFactory
.scope
- The Key-Value Table scope.config
- Configuration for the client.KeyValueTableFactory
implementation.<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)
KeyValueTable
that provides access to a Pravega Key-Value Table.KeyT
- Key Type.ValueT
- Value Type.keyValueTableName
- Name of the KeyValueTable
.keySerializer
- A Serializer
for KeyValueTable
Keys. Refer to the KeyValueTable
Javadoc for constraints relating to the size of the serialization.valueSerializer
- A Serializer
for KeyValueTable
Values. Refer to the KeyValueTable
Javadoc for constraints relating to the size of the serialization.clientConfiguration
- A KeyValueTableClientConfiguration
to use for configuring the
KeyValueTable
client.KeyValueTable
that provides access to the requested Key-Value Table.void close()
KeyValueTableFactory
. This will close any connections created through it.close
in interface java.lang.AutoCloseable
AutoCloseable.close()