org.apache.jackrabbit.spi
Interface EventBundle

All Superinterfaces:
java.lang.Iterable<Event>

public interface EventBundle
extends java.lang.Iterable<Event>

An EventBundle is similar to the EventIterator interface. Other than the EventIterator an EventBundle allows to retrieve the events multiple times using the getEvents() method.


Method Summary
 java.util.Iterator<Event> getEvents()
          Returns the events of this bundle.
 boolean isLocal()
          Returns true if this event bundle is associated with a change that was initiated by a local session info.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getEvents

java.util.Iterator<Event> getEvents()
Returns the events of this bundle.

Returns:
the events of this bundle.

isLocal

boolean isLocal()
Returns true if this event bundle is associated with a change that was initiated by a local session info. Event bundles for external changes will aways return false.

Returns:
true if this event bundle is associated with a local change, false if this event bundle contains external changes.


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.