public class ReconnectedEventBundleImpl extends Object implements ReconnectedEventBundle
EventBundle that need to be reconnected to a usable Session.| Modifier and Type | Field and Description |
|---|---|
protected String |
listenerName
Lister name or names.
|
protected LoginContext |
loginCtx |
protected CloseableCoreSession |
reconnectedCoreSession |
protected List<Event> |
reconnectedEvents |
protected EventBundle |
sourceEventBundle |
SKIP_REFETCH_DOCUMENT_CONTEXT_KEY| Modifier | Constructor and Description |
|---|---|
protected |
ReconnectedEventBundleImpl() |
|
ReconnectedEventBundleImpl(EventBundle sourceEventBundle) |
|
ReconnectedEventBundleImpl(EventBundle sourceEventBundle,
String listenerName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected CoreSession |
getReconnectedCoreSession(String repoName,
String originatingUsername) |
protected List<Event> |
getReconnectedEvents() |
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.
|
protected boolean |
refetchDocumentModel(CoreSession session,
Object eventProperty) |
int |
size()
Gets the size of that bundle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected EventBundle sourceEventBundle
protected String listenerName
protected transient List<Event> reconnectedEvents
protected transient LoginContext loginCtx
protected transient CloseableCoreSession reconnectedCoreSession
protected ReconnectedEventBundleImpl()
public ReconnectedEventBundleImpl(EventBundle sourceEventBundle)
public ReconnectedEventBundleImpl(EventBundle sourceEventBundle, String listenerName)
protected CoreSession getReconnectedCoreSession(String repoName, String originatingUsername)
protected List<Event> getReconnectedEvents()
protected boolean refetchDocumentModel(CoreSession session, Object eventProperty)
public 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 VMID getSourceVMID()
EventBundlegetSourceVMID in interface EventBundlepublic boolean hasRemoteSource()
EventBundlehasRemoteSource 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 void disconnect()
ReconnectedEventBundledisconnect in interface ReconnectedEventBundlepublic boolean containsEventName(String eventName)
EventBundlecontainsEventName in interface EventBundlepublic List<String> getEventNames()
Copyright © 2019 Nuxeo. All rights reserved.