Package io.pravega.client
Interface KeyValueTableFactory
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface KeyValueTableFactory extends java.lang.AutoCloseable
Creates instances ofKeyValueTable
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes theKeyValueTableFactory
.KeyValueTable
forKeyValueTable(@NonNull java.lang.String keyValueTableName, @NonNull KeyValueTableClientConfiguration clientConfiguration)
Creates a newKeyValueTable
that provides access to a Pravega Key-Value Table.static KeyValueTableFactory
withScope(java.lang.String scope, ClientConfig config)
Creates a new instance ofKeyValueTableFactory
.
-
-
-
Method Detail
-
withScope
static KeyValueTableFactory withScope(java.lang.String scope, ClientConfig config)
Creates a new instance ofKeyValueTableFactory
.- Parameters:
scope
- The Key-Value Table scope.config
- Configuration for the client.- Returns:
- Instance of
KeyValueTableFactory
implementation.
-
forKeyValueTable
KeyValueTable forKeyValueTable(@NonNull @NonNull java.lang.String keyValueTableName, @NonNull @NonNull KeyValueTableClientConfiguration clientConfiguration)
Creates a newKeyValueTable
that provides access to a Pravega Key-Value Table.- Parameters:
keyValueTableName
- Name of theKeyValueTable
.clientConfiguration
- AKeyValueTableClientConfiguration
to use for configuring theKeyValueTable
client.- Returns:
- A
KeyValueTable
that provides access to the requested Key-Value Table.
-
close
void close()
Closes theKeyValueTableFactory
. This will close any connections created through it.- Specified by:
close
in interfacejava.lang.AutoCloseable
- See Also:
AutoCloseable.close()
-
-