Class RemoteStreamImpl<M extends BufferReader,P extends BufferWriter>
java.lang.Object
io.camunda.zeebe.transport.stream.impl.RemoteStreamImpl<M,P>
- All Implemented Interfaces:
RemoteStream<M,P>
public class RemoteStreamImpl<M extends BufferReader,P extends BufferWriter>
extends Object
implements RemoteStream<M,P>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.transport.stream.api.RemoteStream
RemoteStream.ErrorHandler<P extends BufferWriter> -
Constructor Summary
ConstructorsConstructorDescriptionRemoteStreamImpl(M metadata, io.camunda.zeebe.transport.stream.impl.RemoteStreamPusher<P> streamer) -
Method Summary
-
Constructor Details
-
RemoteStreamImpl
-
-
Method Details
-
metadata
Description copied from interface:RemoteStreamReturns the stream's metadata- Specified by:
metadatain interfaceRemoteStream<M extends BufferReader,P extends BufferWriter>
-
push
Description copied from interface:RemoteStreamPushes the given payload to the stream. Implementations of this are likely asynchronous; it's recommended that callers ensure that the given payload is immutable, and that the error handler does not close over any shared state.- Specified by:
pushin interfaceRemoteStream<M extends BufferReader,P extends BufferWriter> - Parameters:
payload- the data to push to the remote gatewayerrorHandler- logic to execute if the data could not be pushed to the underlying stream
-