|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubscriptionService<T>
SubscriptionService<T>
interface defines subscriber contract for Publish/Subscribe pattern.
Method Summary | |
---|---|
void |
register(Action<T> handler,
Predicate<T> filter)
Registers an action to be performed when a publishing event occurs. |
void |
register(Subscriber<T> subscriber)
Registers a subscriber for notifications about publishing event. |
void |
unregister(Action<T> handler)
Unregisters a subscriber from notifications about publishing activities. |
void |
unregister(Subscriber<T> subscriber)
Unregisters a subscriber from notifications about publishing activities. |
Method Detail |
---|
void register(Subscriber<T> subscriber)
subscriber
- interface of subscriber object being registeredvoid register(Action<T> handler, Predicate<T> filter)
handler
- represents the method that performs an action on the specified object
when a publishing event occursfilter
- filter predicate that allows checking whether publishing event should
be processed or ignoredvoid unregister(Subscriber<T> subscriber)
subscriber
- interface of subscriber object being unregisteredvoid unregister(Action<T> handler)
handler
- Represents the method that performs an action on the specified object
when a publishing event occurs
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |