Class EventBundleImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.EventBundleImpl
- All Implemented Interfaces:
Serializable,Iterable<Event>,EventBundle
EventBundleImpl implements a serializable EventBundle.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventBundleImpl(Collection<Event> events, boolean isLocal) Creates a new event bundle withevents. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EventBundleImpl
Creates a new event bundle withevents.- Parameters:
events- the events for this bundle.isLocal- if this events were created due to a local change.
-
-
Method Details
-
getEvents
Returns the events of this bundle.- Specified by:
getEventsin interfaceEventBundle- Returns:
- the
eventsof this bundle.
-
isLocal
public boolean isLocal()Returnstrueif this event bundle is associated with a change that was initiated by a local session info. Event bundles for external changes will aways returnfalse.- Specified by:
isLocalin interfaceEventBundle- Returns:
trueif this event bundle is associated with a local change,falseif this event bundle contains external changes.
-
iterator
-