Interface EventAware

All Known Subinterfaces:
NitriteCollection, ObjectRepository<T>, PersistentCollection<T>

public interface EventAware
An interface to make a NitriteCollection or ObjectRepository event aware.
Since:
4.0
Author:
Anindya Chatterjee
  • Method Summary

    Modifier and Type
    Method
    Description
    Subscribes a listener to the collection event.
    void
    unsubscribe(String subscription)
    Unsubscribes a listener from the collection event.
  • Method Details

    • subscribe

      String subscribe(CollectionEventListener listener)
      Subscribes a listener to the collection event.
      Parameters:
      listener - the listener to subscribe
      Returns:
      the subscription id
    • unsubscribe

      void unsubscribe(String subscription)
      Unsubscribes a listener from the collection event.
      Parameters:
      subscription - the subscription id to unsubscribe