@Beta
public interface ByteStreamClientFactory
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the ByteStreamClientFactory.
|
ByteStreamReader |
createByteStreamReader(java.lang.String streamName)
Creates a new ByteStreamReader on the specified stream initialized to offset 0.
|
ByteStreamWriter |
createByteStreamWriter(java.lang.String streamName)
Creates a new ByteStreamWriter on the specified stream.
|
static ByteStreamClientFactory |
withScope(java.lang.String scope,
ClientConfig config)
Creates a new instance of ByteStreamClientFactory.
|
static ByteStreamClientFactory withScope(java.lang.String scope, ClientConfig config)
scope
- The scope string.config
- Configuration for the client.@Beta ByteStreamReader createByteStreamReader(java.lang.String streamName)
streamName
- the stream to read from.@Beta ByteStreamWriter createByteStreamWriter(java.lang.String streamName)
streamName
- The name of the stream to write to.void close()
close
in interface java.lang.AutoCloseable
AutoCloseable.close()