Interface EventAware
-
- All Known Subinterfaces:
NitriteCollection,ObjectRepository<T>,PersistentCollection<T>
public interface EventAwareAn interface to make aNitriteCollectionorObjectRepositoryevent aware.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringsubscribe(CollectionEventListener listener)Subscribes a listener to the collection event.voidunsubscribe(String subscription)Unsubscribes a listener from the collection event.
-
-
-
Method Detail
-
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
-
-