public interface EventBundle extends Iterable<Event>, Serializable
The bundle is used collects any events that is raised during an user operation. The bundle will be send after the
operation commit to any registered PostCommitEventListener
.
The bundle implementation is free to ignore some events. This is the case for events marked as inline or for duplicate events.
Modifier and Type | Method and Description |
---|---|
boolean |
containsEventName(String eventName)
Check is bundle contains the specified event.
|
String |
getName()
Gets the bundle name.
|
VMID |
getSourceVMID()
Returns the VMID of the JVM where the bundle was created.
|
boolean |
hasRemoteSource()
Tests whether or not this event bundle was created on a remote machine.
|
boolean |
isEmpty()
Tests whether or not this bundle is empty.
|
Event |
peek()
Gets the first event in that bundle.
|
void |
push(Event event)
Adds an event in that bundle at the end of the list.
|
int |
size()
Gets the size of that bundle.
|
forEach, iterator, spliterator
String getName()
This is usually the first event repository name in the bundle but the implementation may decide to change this behavior.
void push(Event event)
The bundle implementation must ignore redundant events and events marked as inline.
event
- the event to append.Event peek()
boolean isEmpty()
int size()
boolean hasRemoteSource()
VMID getSourceVMID()
boolean containsEventName(String eventName)
Copyright © 2017 Nuxeo. All rights reserved.