public class SubscriptionRepository
extends java.lang.Object
| Constructor and Description |
|---|
SubscriptionRepository() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Subscription> |
findAllSubscriptionsFor(Event event)
Find all subscriptions whose the
SubscriptionQuery matches the provided event |
void |
register(Subscription subscription)
Register a new subscription to consume events.
|
public void register(Subscription subscription)
subscription - the subscription to register; must not be null;public java.util.Collection<Subscription> findAllSubscriptionsFor(Event event)
SubscriptionQuery matches the provided eventevent - can be null (will return an empty list)