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 Details

    • onRegistered

      void onRegistered(SubscriptionRecord subscription, boolean created)
      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

      void onRemoved(SubscriptionRecord subscription, String reason)
      Called after a row was removed.
      Parameters:
      subscription - The row as it was.
      reason - An IPushNotificationListener.REMOVED_* constant.