|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.test.api.observation.EventResult
public class EventResult
Utility class for Event retrieval with an
EventListener.
getEventIterator(long) and getEvents(long) methods
will block until an event is delivered and then return the events. Note, that
only one of the methods can be called for an expected event delivery. Calling
the 'other' method will block until the next events are delivered.
| Constructor Summary | |
|---|---|
EventResult(java.io.PrintWriter log)
Creates a new EventResult. |
|
| Method Summary | |
|---|---|
EventIterator |
getEventIterator(long wait)
Gets the events from the EventListener. |
Event[] |
getEvents(long wait)
Gets the events from the EventListener. |
void |
onEvent(EventIterator events)
Called when events are delivered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventResult(java.io.PrintWriter log)
EventResult.
log - log messages are written to this Logger.| Method Detail |
|---|
public Event[] getEvents(long wait)
wait
milliseconds for the events.
If the events are not delivered within wait time an empty
array is returned and a log message is written.
wait - time in milliseconds to wait at most for Events.
Events.public EventIterator getEventIterator(long wait)
wait
milliseconds for the events.
If the events are not delivered within wait time
null is returned and a log message is written.
wait - time in milliseconds to wait at most for
EventIterator.
EventIterator.public void onEvent(EventIterator events)
onEvent in interface EventListenerevents - the events.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||