Interface RemoteStreamer<M extends BufferReader,P extends BufferWriter>
- Type Parameters:
M- associated metadata with a single streamP- the payload type that can be pushed to the stream
- All Known Implementing Classes:
RemoteStreamerImpl
public interface RemoteStreamer<M extends BufferReader,P extends BufferWriter>
A
RemoteStreamer allows to push data back to a single gateway (any). It keeps track of
multiple RemoteStream instances, each with their own streamType. The semantics of the
streamType, associated with the metadata and payload, are owned by the consumer of the API.-
Method Summary
Modifier and TypeMethodDescriptionstreamFor(org.agrona.DirectBuffer streamType) Returns a valid stream for the given streamType, orOptional.empty()if there is none.
-
Method Details
-
streamFor
Returns a valid stream for the given streamType, orOptional.empty()if there is none.
-