Interface RemoteStreamer<M,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
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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 TypeMethodDescriptiondefault Optional<RemoteStream<M, P>> streamFor(org.agrona.DirectBuffer jobType) Returns a valid stream for the given streamType, orOptional.empty()if there is none.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.The predicate should return false to exclude streams from the list of possible streams.
- Parameters:
streamType- the job type to look forfilter- a filter to include/exclude eligible job streams based on their properties- Returns:
- a job stream which matches the type and given filter, or
Optional.empty()if none match
-
streamFor
Returns a valid stream for the given streamType, orOptional.empty()if there is none.
-