public class ClientObservationManager extends ClientObject implements javax.jcr.observation.ObservationManager
ClientObservationManager class
This class uses an instance of the
ClientEventPoll class for the
actual registration and event dispatching.
This class does not require the
LocalAdapterFactory and consequently
calls the base class constructor with a null factory.
See the observation
package comment for a description on how event listener registration and
notification is implemented.
ClientEventPoll| Constructor and Description |
|---|
ClientObservationManager(javax.jcr.Workspace workspace,
RemoteObservationManager remote)
Creates an instance of this class talking to the given remote observation
manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(javax.jcr.observation.EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal) |
javax.jcr.observation.EventJournal |
getEventJournal() |
javax.jcr.observation.EventJournal |
getEventJournal(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName) |
javax.jcr.observation.EventListenerIterator |
getRegisteredEventListeners() |
void |
removeEventListener(javax.jcr.observation.EventListener listener) |
void |
setUserData(String userData) |
getFactory, getItem, getNode, getNodeTypeArraypublic ClientObservationManager(javax.jcr.Workspace workspace,
RemoteObservationManager remote)
remote - The RemoteObservationManager backing this
client-side observation manager.workspace - The Workspace instance to which this
observation manager belongs.public void addEventListener(javax.jcr.observation.EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
throws javax.jcr.RepositoryException
addEventListener in interface javax.jcr.observation.ObservationManagerjavax.jcr.RepositoryExceptionpublic void removeEventListener(javax.jcr.observation.EventListener listener)
throws javax.jcr.RepositoryException
removeEventListener in interface javax.jcr.observation.ObservationManagerjavax.jcr.RepositoryExceptionpublic javax.jcr.observation.EventListenerIterator getRegisteredEventListeners()
getRegisteredEventListeners in interface javax.jcr.observation.ObservationManagerpublic javax.jcr.observation.EventJournal getEventJournal()
throws javax.jcr.RepositoryException
getEventJournal in interface javax.jcr.observation.ObservationManagerjavax.jcr.RepositoryExceptionpublic javax.jcr.observation.EventJournal getEventJournal(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName)
throws javax.jcr.RepositoryException
getEventJournal in interface javax.jcr.observation.ObservationManagerjavax.jcr.RepositoryExceptionpublic void setUserData(String userData) throws javax.jcr.RepositoryException
setUserData in interface javax.jcr.observation.ObservationManagerjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.