public class ByteStreamClientImpl extends java.lang.Object implements ByteStreamClientFactory
Constructor and Description |
---|
ByteStreamClientImpl(java.lang.String scope,
Controller controller,
ConnectionFactory connectionFactory) |
ByteStreamClientImpl(@NonNull java.lang.String scope,
@NonNull Controller controller,
@NonNull ConnectionFactory connectionFactory,
@NonNull SegmentInputStreamFactory inputStreamFactory,
@NonNull SegmentOutputStreamFactory outputStreamFactory,
@NonNull SegmentMetadataClientFactory metaStreamFactory) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withScope
public ByteStreamClientImpl(java.lang.String scope, Controller controller, ConnectionFactory connectionFactory)
@ConstructorProperties(value={"scope","controller","connectionFactory","inputStreamFactory","outputStreamFactory","metaStreamFactory"}) public ByteStreamClientImpl(@NonNull @NonNull java.lang.String scope, @NonNull @NonNull Controller controller, @NonNull @NonNull ConnectionFactory connectionFactory, @NonNull @NonNull SegmentInputStreamFactory inputStreamFactory, @NonNull @NonNull SegmentOutputStreamFactory outputStreamFactory, @NonNull @NonNull SegmentMetadataClientFactory metaStreamFactory)
public ByteStreamReader createByteStreamReader(java.lang.String streamName)
ByteStreamClientFactory
createByteStreamReader
in interface ByteStreamClientFactory
streamName
- the stream to read from.public ByteStreamWriter createByteStreamWriter(java.lang.String streamName)
ByteStreamClientFactory
createByteStreamWriter
in interface ByteStreamClientFactory
streamName
- The name of the stream to write to.public void close()
ByteStreamClientFactory
close
in interface ByteStreamClientFactory
close
in interface java.lang.AutoCloseable
AutoCloseable.close()