public class EventBundleImpl extends Object implements EventBundle
| Modifier and Type | Field and Description | 
|---|---|
protected Set<String> | 
eventNames  | 
protected List<Event> | 
events  | 
protected VMID | 
vmid  | 
| Constructor and Description | 
|---|
EventBundleImpl()  | 
EventBundleImpl(VMID sourceVMID)  | 
| 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. 
 | 
Iterator<Event> | 
iterator()  | 
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. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected final Set<String> eventNames
public EventBundleImpl(VMID sourceVMID)
public EventBundleImpl()
public boolean hasRemoteSource()
EventBundlehasRemoteSource in interface EventBundlepublic String getName()
EventBundleThis is usually the first event repository name in the bundle but the implementation may decide to change this behavior.
getName in interface EventBundlepublic boolean isEmpty()
EventBundleisEmpty in interface EventBundlepublic Event peek()
EventBundlepeek in interface EventBundlepublic void push(Event event)
EventBundleThe bundle implementation must ignore redundant events and events marked as inline.
push in interface EventBundleevent - the event to append.public int size()
EventBundlesize in interface EventBundlepublic VMID getSourceVMID()
EventBundlegetSourceVMID in interface EventBundlepublic boolean containsEventName(String eventName)
EventBundlecontainsEventName in interface EventBundleCopyright © 2019 Nuxeo. All rights reserved.