Interface SubscriptionStore.Listener
- All Known Implementing Classes:
PushEvents
- Enclosing class:
SubscriptionStore
public static interface SubscriptionStore.Listener
Observer of the rows this store creates and removes (P4-04): called on the thread that made the change, after its transaction committed, once per row. An implementation must not block - the engine's
PushEvents only posts to session workers - and one that throws is logged and does not stop the others or the caller.- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoidonRegistered(SubscriptionRecord subscription, boolean created) Called after a registration.voidonRemoved(SubscriptionRecord subscription, String reason) Called after a row was removed.
Method Details
onRegistered
Called after a registration.- Parameters:
subscription- The row as it now stands.created- true for a new row, false for an existing row updated with a new subscription; an unchanged re-registration is not reported.
onRemoved
Called after a row was removed.- Parameters:
subscription- The row as it was.reason- AnIPushNotificationListener.REMOVED_*constant.