|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.IdentityHashMap
org.exist.storage.NotificationService
Global notification service for document updates. Other classes can subscribe to this service to be notified of document modifications, removals or additions.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary | |
NotificationService()
|
Method Summary | |
void |
debug()
|
void |
notifyUpdate(DocumentImpl document,
int event)
Notify all subscribers that a document has been updated/removed or a new document has been added. |
void |
subscribe(UpdateListener listener)
Subscribe an UpdateListener to receive notifications. |
void |
unsubscribe(UpdateListener listener)
Unsubscribe an UpdateListener . |
Methods inherited from class java.util.IdentityHashMap |
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NotificationService()
Method Detail |
public void subscribe(UpdateListener listener)
UpdateListener
to receive notifications.
listener
- public void unsubscribe(UpdateListener listener)
UpdateListener
.
listener
- public void notifyUpdate(DocumentImpl document, int event)
document
- event
- public void debug()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |