Package io.pravega.client
Interface KeyValueTableFactory
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface KeyValueTableFactory extends java.lang.AutoCloseableCreates instances ofKeyValueTable.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes theKeyValueTableFactory.KeyValueTableforKeyValueTable(@NonNull java.lang.String keyValueTableName, @NonNull KeyValueTableClientConfiguration clientConfiguration)Creates a newKeyValueTablethat provides access to a Pravega Key-Value Table.static KeyValueTableFactorywithScope(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
KeyValueTableFactoryimplementation.
-
forKeyValueTable
KeyValueTable forKeyValueTable(@NonNull @NonNull java.lang.String keyValueTableName, @NonNull @NonNull KeyValueTableClientConfiguration clientConfiguration)
Creates a newKeyValueTablethat provides access to a Pravega Key-Value Table.- Parameters:
keyValueTableName- Name of theKeyValueTable.clientConfiguration- AKeyValueTableClientConfigurationto use for configuring theKeyValueTableclient.- Returns:
- A
KeyValueTablethat provides access to the requested Key-Value Table.
-
close
void close()
Closes theKeyValueTableFactory. This will close any connections created through it.- Specified by:
closein interfacejava.lang.AutoCloseable- See Also:
AutoCloseable.close()
-
-