@FunctionalInterface
public interface DiscoveryService
Publisher.ProvidingService| Modifier and Type | Method and Description |
|---|---|
<T> org.reactivestreams.Publisher<T> |
discover(StreamId<T> id)
Given a
StreamId, this method returns the correspondent Publisher. |
<T> org.reactivestreams.Publisher<T> discover(StreamId<T> id)
StreamId, this method returns the correspondent Publisher. 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.id - the identifier of the stream to be discoveredPublisher