Class RemoteStreamImpl<M,P extends BufferWriter>
java.lang.Object
io.camunda.zeebe.transport.stream.impl.RemoteStreamImpl<M,P>
- All Implemented Interfaces:
RemoteStream<M,P>
public final class RemoteStreamImpl<M,P extends BufferWriter>
extends Object
implements RemoteStream<M,P>
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteStreamImpl(io.camunda.zeebe.transport.stream.impl.AggregatedRemoteStream<M> stream, io.camunda.zeebe.transport.stream.impl.RemoteStreamPusher<P> streamer, RemoteStreamErrorHandler<P> errorHandler) -
Method Summary
-
Constructor Details
-
RemoteStreamImpl
public RemoteStreamImpl(io.camunda.zeebe.transport.stream.impl.AggregatedRemoteStream<M> stream, io.camunda.zeebe.transport.stream.impl.RemoteStreamPusher<P> streamer, RemoteStreamErrorHandler<P> errorHandler)
-
-
Method Details
-
metadata
Description copied from interface:RemoteStreamReturns the stream's metadata- Specified by:
metadatain interfaceRemoteStream<M,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,P extends BufferWriter> - Parameters:
payload- the data to push to the remote gateway
-