Package org.streamingpool.core.service
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 ProvidingServiceInterface that is able to providePublisher. The provided stream can be then discovered using theDiscoveryService. 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidprovide(StreamId<T> id, org.reactivestreams.Publisher<T> stream)Provides the stream with the specified id.
-
-
-
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 fromDiscoveryServiceusing the sameStreamId.- Parameters:
id- theStreamIdthat identifies the specified streamstream- thePublisherto be provided
-
-