Package io.pravega.client
Interface KeyValueTableFactory
- 
- All Superinterfaces:
- java.lang.AutoCloseable
 
 public interface KeyValueTableFactory extends java.lang.AutoCloseableCreates instances ofKeyValueTable.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract 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.static KeyValueTableFactorywithScope(java.lang.String scope, ClientConfig config)Creates a new instance ofKeyValueTableFactory.
 
- 
- 
- 
Method Detail- 
withScopestatic 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<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) Creates a newKeyValueTablethat provides access to a Pravega Key-Value Table.- Type Parameters:
- KeyT- Key Type.
- ValueT- Value Type.
- Parameters:
- keyValueTableName- Name of the- KeyValueTable.
- keySerializer- A- Serializerfor- KeyValueTableKeys. Refer to the- KeyValueTableJavadoc for constraints relating to the size of the serialization.
- valueSerializer- A- Serializerfor- KeyValueTableValues. Refer to the- KeyValueTableJavadoc for constraints relating to the size of the serialization.
- clientConfiguration- A- KeyValueTableClientConfigurationto use for configuring the- KeyValueTableclient.
- Returns:
- A KeyValueTablethat provides access to the requested Key-Value Table.
 
 - 
closevoid close() Closes theKeyValueTableFactory. This will close any connections created through it.- Specified by:
- closein interface- java.lang.AutoCloseable
- See Also:
- AutoCloseable.close()
 
 
- 
 
-