Remote version of the JCR ObservationManager
interface. Used by the
ServerObservationManager
and
ClientObservationManager
adapter base classes to provide transparent RMI access to remote observation
managers.
See the observation
package comment for a description on how event listener registration and
notification is implemented.
@Deprecated public interface RemoteObservationManager extends Remote
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(long listenerId,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
Deprecated.
Remote version of the
ObservationManager.addEventListener()
method. |
RemoteEventCollection |
getNextEvent(long timeout)
Deprecated.
Returns the next event to be dispatched to registered event listeners.
|
void |
removeEventListener(long listenerId)
Deprecated.
Remote version of the
ObservationManager.removeEventListener()
method. |
void addEventListener(long listenerId, int eventTypes, String absPath, boolean isDeep, String[] uuid, String[] nodeTypeName, boolean noLocal) throws RepositoryException, RemoteException
ObservationManager.addEventListener()
method. See class comment for an explanation on how the
listenerId
is used.listenerId
- The identification of the listener on the client
side to which events will be directed.eventTypes
- The mask of event types to be sent to this listener.absPath
- The root item defining a subtree for which events are to
be delivered.isDeep
- true
if the events from the complete subtree
rooted at absPath
are to be sent or only for the item
at the given path.uuid
- An optional list of node UUIDs for which events are to be
sent. If null
this parameter is ignored.nodeTypeName
- An optional list of node type names for which events
are to be sent. If null
this parameter is ignored.noLocal
- true
if only events are to be sent which do
not originate from the session to which this instance belongs.RepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid removeEventListener(long listenerId) throws RepositoryException, RemoteException
ObservationManager.removeEventListener()
method. See class comment for an explanation on how the
listenerId
is used.listenerId
- The identification of the listener on the client
side to which events will be directed.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteEventCollection getNextEvent(long timeout) throws RemoteException
timeout
- The time in milliseconds to wait for the next event
available to be dispatched. If negative or zero, this method waits
for ever.RemoteEventCollection
to be dispatched. null
is
returned if the method timed out waiting for an event to be
dispatched.RemoteException
- on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.