- All Known Subinterfaces:
public interface EventBundle extends Iterable<Event>, SerializableAn ordered set of events raised during an user operation.
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
The bundle implementation is free to ignore some events. This is the case for events marked as inline or for duplicate events.
- Bogdan Stefanescu
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
containsEventName(String eventName)Check is bundle contains the specified event.
getName()Gets the bundle name.
getSourceVMID()Returns the VMID of the JVM where the bundle was created.
hasRemoteSource()Tests whether or not this event bundle was created on a remote machine.
isEmpty()Tests whether or not this bundle is empty.
peek()Gets the first event in that bundle.
push(Event event)Adds an event in that bundle at the end of the list.
size()Gets the size of that bundle.
getNameGets the bundle name.
This is usually the first event repository name in the bundle but the implementation may decide to change this behavior.
- the bundle name. Can be null only if the bundle is empty.
pushAdds an event in that bundle at the end of the list.
The bundle implementation must ignore redundant events and events marked as inline.
event- the event to append.
peekGets the first event in that bundle.
- the first event. Can be null if the bundle is empty
boolean isEmpty()Tests whether or not this bundle is empty.
int size()Gets the size of that bundle.
- the number of events in that bundle
boolean hasRemoteSource()Tests whether or not this event bundle was created on a remote machine.
- true if the event bundle was fired from a remote machine, false otherwise