Class OMRSEventProcessingContext
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSEventProcessingContext
OMRS message processing context. This class allows Egeria to be notified when a message is being
processed asynchronously so that the consumer can correctly record when the message has been
completely processed.
This class is considered part of the Egeria public API and is used
directly by consumer implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAsyncProcessingResult
(Future<?> future) Registers aFuture
so that Egeria can keep track of asynchronous message processing being done by consumers.static void
addAsyncProcessingResult
(OMRSFuture future) Registers aFuture
so that Egeria can keep track of asynchronous message processing being done by consumers.static String
Gets unique identifier for the current message.
-
Constructor Details
-
OMRSEventProcessingContext
public OMRSEventProcessingContext()
-
-
Method Details
-
addAsyncProcessingResult
Registers aFuture
so that Egeria can keep track of asynchronous message processing being done by consumers. Egeria will not mark a message as processed until all consumers have fully processed the message or the processing timeout has expired- Parameters:
future
- The future that should be monitored by Egeria to detect when the asynchronous processing is complete
-
addAsyncProcessingResult
Registers aFuture
so that Egeria can keep track of asynchronous message processing being done by consumers. Egeria will not mark a message as processed until all consumers have fully processed the message or the processing timeout has expired- Parameters:
future
- The future that should be monitored by Egeria to detect when the asynchronous processing is complete
-
getCurrentMessageId
Gets unique identifier for the current message. The identifier is specific to the underlying messaging system. If a message is being reprocessed (eg due to a server restart before the message was fully processed), the identifier will be the same. The identifier should be different if content happens to be the same as the content of another message, but they are actually different messages.- Returns:
- the current message id
-