public class SubscriptionMatcher extends Object
Constructor and Description |
---|
SubscriptionMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
add(SubscriptionHolder holder)
Adds a
SubscriptionHolder which will be used for event matching |
Set<SubscriptionHolder> |
match(JsonRpcEvent event)
Matches current subscriptions to an event and returns a
Set
containing all subscriptions that match for this event processing. |
void |
remove(SubscriptionHolder holder)
Used during removal of a subscription.
|
public void add(SubscriptionHolder holder)
SubscriptionHolder
which will be used for event matchingholder
- Instance holding subscription information.public Set<SubscriptionHolder> match(JsonRpcEvent event)
Set
containing all subscriptions that match for this event processing.event
- Incoming event used to match subscribers.Set
with matched subscriptions.public void remove(SubscriptionHolder holder)
holder
- Object holding information about subscription being removed.Copyright © 2016. All rights reserved.