Package org.nuxeo.ecm.core.event
Interface ReconnectedEventBundle
- All Superinterfaces:
EventBundle
,Iterable<Event>
,Serializable
- All Known Implementing Classes:
ReconnectedEventBundleImpl
Because
EventBundle
can be processed asynchronously, they can be executed:
- in a different security context
- with a different
CoreSession
- Create a JAAS session via
Framework.login()
- Create a new usage
CoreSession
- refetch any
EventContext
args / properties according to new session - provide cleanup method
- Author:
- tiry
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Marker to pass and set to true in document models context data when passing it in event properties, to avoid refetching it when reconnecting. -
Method Summary
Methods inherited from interface org.nuxeo.ecm.core.event.EventBundle
containsEventName, getName, getSourceVMID, hasRemoteSource, isEmpty, peek, push, size
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
SKIP_REFETCH_DOCUMENT_CONTEXT_KEY
Marker to pass and set to true in document models context data when passing it in event properties, to avoid refetching it when reconnecting.- See Also:
-
-
Method Details
-
disconnect
void disconnect()Manage cleanup after processing.
-