public class EventHelper extends Object implements javax.jcr.observation.EventListener
Modifier and Type | Field and Description |
---|---|
static String |
WAIT_NODE_FOLDER |
static String |
WAIT_NODE_NODE |
Constructor and Description |
---|
EventHelper(javax.jcr.Session s) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Remove the event listener from the observation listener.
|
void |
onEvent(javax.jcr.observation.EventIterator it) |
void |
waitForEvents(long timeoutMsec)
To make sure observation events have been delivered,
create or delete a a node and wait for the corresponding
events to be received.
|
public static final String WAIT_NODE_FOLDER
public static final String WAIT_NODE_NODE
public EventHelper(javax.jcr.Session s) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void onEvent(javax.jcr.observation.EventIterator it)
onEvent
in interface javax.jcr.observation.EventListener
public void waitForEvents(long timeoutMsec) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void dispose()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.