Interface ProvidingService

  • All Known Implementing Classes:
    LocalPool
    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 ProvidingService
    Interface that is able to provide Publisher. The provided stream can be then discovered using the DiscoveryService. There are no restrictions on how the implementations actually provide the streams but this process must be transparent to the user.
    See Also:
    DiscoveryService
    • Method Detail

      • provide

        <T> void provide​(StreamId<T> id,
                         org.reactivestreams.Publisher<T> stream)
        Provides the stream with the specified id. From the moment the stream is provided, it can be accessed from DiscoveryService using the same StreamId.
        Parameters:
        id - the StreamId that identifies the specified stream
        stream - the Publisher to be provided