Interface Subscriptions
- All Known Implementing Classes:
SubscriptionRegistry
public interface Subscriptions
Interface to access subscriptions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<SourceSubscriptionManager>Gets a specific subscription.default Map<String,SourceSubscriptionManager> getAll()Returns an immutable map of all active subscriptions.
-
Method Details
-
get
Gets a specific subscription.- Parameters:
subscriptionId- the identifier of the subscription to retrieve.- Returns:
- the
SourceSubscriptionManagerinstance if found, otherwiseOptional.empty().
-
getAll
Returns an immutable map of all active subscriptions.- Returns:
- all subscription managers.
-