Package org.apache.jackrabbit.spi
Interface EventBundle
-
- All Superinterfaces:
java.lang.Iterable<Event>
- All Known Implementing Classes:
EventBundleImpl
public interface EventBundle extends java.lang.Iterable<Event>
AnEventBundle
is similar to theEventIterator
interface. Other than theEventIterator
anEventBundle
allows to retrieve the events multiple times using thegetEvents()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<Event>
getEvents()
Returns the events of this bundle.boolean
isLocal()
Returnstrue
if this event bundle is associated with a change that was initiated by a local session info.
-
-
-
Method Detail
-
getEvents
java.util.Iterator<Event> getEvents()
Returns the events of this bundle.- Returns:
- the
events
of this bundle.
-
isLocal
boolean isLocal()
Returnstrue
if this event bundle is associated with a change that was initiated by a local session info. Event bundles for external changes will aways returnfalse
.- Returns:
true
if this event bundle is associated with a local change,false
if this event bundle contains external changes.
-
-