public class InternalOMRSEventProcessingContext extends Object
| Constructor and Description |
|---|
InternalOMRSEventProcessingContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAsyncProcessingResult(Future<?> future)
Registers a
Future associated with asynchronous message processing. |
void |
addAsyncProcessingResult(OMRSFuture future)
Registers an
OMRSFuture associated with asynchronous message processing. |
static void |
clear()
Clears the
InternalOMRSEventProcessingContext for the
current thread. |
String |
getCurrentMessageId()
Gets the unique identifier for the current message that
is being processed.
|
static InternalOMRSEventProcessingContext |
getInstance()
Gets the thread-local
InternalOMRSEventProcessingContext instance
for the current thread. |
OMRSFuture |
getOverallAsyncProcessingResult()
Gets the overall asynchronous processing result from all consumers.
|
void |
setCurrentMessageId(String messageId)
Sets the unique identifier for the current message that
is being processed.
|
public void addAsyncProcessingResult(Future<?> future)
Future associated with asynchronous message processing.future - registered objectpublic void addAsyncProcessingResult(OMRSFuture future)
OMRSFuture associated with asynchronous message processing.future - registered objectpublic OMRSFuture getOverallAsyncProcessingResult()
CompletedFuture will
be returned, indicating that asynchronous processing has finishedpublic static InternalOMRSEventProcessingContext getInstance()
InternalOMRSEventProcessingContext instance
for the current thread.InternalOMRSEventProcessingContext for the current threadpublic static void clear()
InternalOMRSEventProcessingContext for the
current thread.public String getCurrentMessageId()
public void setCurrentMessageId(String messageId)
messageId - The messageId to setCopyright © 2018–2020 ODPi. All rights reserved.