Class EventBundleImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.EventBundleImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<Event>
,EventBundle
public class EventBundleImpl extends java.lang.Object implements EventBundle, java.io.Serializable
EventBundleImpl
implements a serializableEventBundle
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventBundleImpl(java.util.Collection<Event> events, boolean isLocal)
Creates a new event bundle withevents
.
-
Method Summary
All Methods Instance Methods Concrete 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.java.util.Iterator<Event>
iterator()
-
-
-
Constructor Detail
-
EventBundleImpl
public EventBundleImpl(java.util.Collection<Event> events, boolean isLocal)
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 Detail
-
getEvents
public java.util.Iterator<Event> getEvents()
Returns the events of this bundle.- Specified by:
getEvents
in interfaceEventBundle
- Returns:
- the
events
of this bundle.
-
isLocal
public 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
.- Specified by:
isLocal
in interfaceEventBundle
- Returns:
true
if this event bundle is associated with a local change,false
if this event bundle contains external changes.
-
-