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 DiscoveryService
    Interface used to discover Publisher.
    See Also:
    ProvidingService
    • Method Detail

      • discover

        <T> org.reactivestreams.Publisher<T> discover​(StreamId<T> id)
        Given a 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.
        Parameters:
        id - the identifier of the stream to be discovered
        Returns:
        the discovered Publisher