Interface CreatorProvidingService

  • All Known Implementing Classes:
    CreatorStreamFactory
    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 CreatorProvidingService
    Interface used for providing a stream using a StreamCreator.
    See Also:
    StreamCreator
    • Method Detail

      • provide

        <T> void provide​(StreamId<T> id,
                         StreamCreator<T> streamSupplier)
        Provides a StreamCreator associated to the specified id.
        Parameters:
        id - the identifier of the stream that the StreamCreator will create
        streamSupplier - the StreamCreator that is able to create the Publisher specified using the given id