Package org.streamingpool.core.service
Interface DiscoveryService
-
- All Known Implementing Classes:
LocalPool,TrackKeepingDiscoveryService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DiscoveryServiceInterface used to discoverPublisher.- See Also:
ProvidingService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> org.reactivestreams.Publisher<T>discover(StreamId<T> id)Given aStreamId, this method returns the correspondentPublisher.
-
-
-
Method Detail
-
discover
<T> org.reactivestreams.Publisher<T> discover(StreamId<T> id)
Given aStreamId, this method returns the correspondentPublisher. This method should not return null, instead is preferred to throw a specific exception in the case the given id is not present in the system. From the API level, this behavior is not forced.- Parameters:
id- the identifier of the stream to be discovered- Returns:
- the discovered
Publisher
-
-