Package org.nuxeo.ecm.core.event
Interface ReconnectedEventBundle
-
- All Superinterfaces:
EventBundle
,Iterable<Event>
,Serializable
- All Known Implementing Classes:
ReconnectedEventBundleImpl
public interface ReconnectedEventBundle extends EventBundle
BecauseEventBundle
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
Fields Modifier and Type Field Description static String
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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disconnect()
Manage cleanup after processing.-
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 Detail
-
SKIP_REFETCH_DOCUMENT_CONTEXT_KEY
static final String 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:
- Constant Field Values
-
-