public class ReconnectedEventBundleImpl extends Object implements ReconnectedEventBundle
EventBundle
that need to be reconnected to a usable Session.SKIP_REFETCH_DOCUMENT_CONTEXT_KEY
Constructor and Description |
---|
ReconnectedEventBundleImpl(EventBundle sourceEventBundle) |
ReconnectedEventBundleImpl(EventBundle sourceEventBundle,
String listenerName) |
Modifier and Type | Method and Description |
---|---|
boolean |
comesFromJMS()
Marker for Bundles coming from JMS.
|
boolean |
containsEventName(String eventName)
Check is bundle contains the specified event.
|
void |
disconnect()
Manage cleanup after processing.
|
List<String> |
getEventNames() |
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.
|
public ReconnectedEventBundleImpl(EventBundle sourceEventBundle)
public ReconnectedEventBundleImpl(EventBundle sourceEventBundle, String listenerName)
public String getName()
EventBundle
This is usually the first event repository name in the bundle but the implementation may decide to change this behavior.
getName
in interface EventBundle
public VMID getSourceVMID()
EventBundle
getSourceVMID
in interface EventBundle
public boolean hasRemoteSource()
EventBundle
hasRemoteSource
in interface EventBundle
public boolean isEmpty()
EventBundle
isEmpty
in interface EventBundle
public Event peek()
EventBundle
peek
in interface EventBundle
public void push(Event event)
EventBundle
The bundle implementation must ignore redundant events and events marked as inline.
push
in interface EventBundle
event
- the event to append.public int size()
EventBundle
size
in interface EventBundle
public void disconnect()
ReconnectedEventBundle
disconnect
in interface ReconnectedEventBundle
public boolean comesFromJMS()
ReconnectedEventBundle
comesFromJMS
in interface ReconnectedEventBundle
public boolean containsEventName(String eventName)
EventBundle
containsEventName
in interface EventBundle
Copyright © 2015 Nuxeo SA. All rights reserved.