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 TypeMethodDescriptionsubscribe(CollectionEventListener listener) Subscribes a listener to the collection event.voidunsubscribe(String subscription) Unsubscribes a listener from the collection event.
-
Method Details
-
subscribe
Subscribes a listener to the collection event.- Parameters:
listener- the listener to subscribe- Returns:
- the subscription id
-
unsubscribe
Unsubscribes a listener from the collection event.- Parameters:
subscription- the subscription id to unsubscribe
-