Interface RemoteStreamer<M extends BufferReader,P extends BufferWriter>

Type Parameters:
M - associated metadata with a single stream
P - 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 Type
    Method
    Description
    streamFor(org.agrona.DirectBuffer streamType)
    Returns a valid stream for the given streamType, or Optional.empty() if there is none.