public class IncomingEvent extends Object
| Constructor and Description |
|---|
IncomingEvent(String json,
String messageId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAsyncProcessingResult(OMRSFuture future)
Adds a
Future for the processing of this event by some
OMRSInstanceEventProcessor |
long |
getCreationTime()
Gets the time when this
IncomingEvent instance was created. |
String |
getJson()
Gets the json for the event
|
String |
getMessageId()
Gets the unique message id for this event.
|
boolean |
hasTimeElapsedSinceCreation(long elapsedTimeMs)
Checks whether the given amount of time has elapsed
since the event was created
|
boolean |
isFullyProcessed()
Checks whether all processing for this event has completed.
|
void |
setState(IncomingEventState state)
Updates the state of the event
|
public String getJson()
public void addAsyncProcessingResult(OMRSFuture future)
Future for the processing of this event by some
OMRSInstanceEventProcessorfuture - the Future to addpublic void setState(IncomingEventState state)
state - the new statepublic long getCreationTime()
IncomingEvent instance was created.
This is different from the time when the message was generated.public String getMessageId()
public boolean hasTimeElapsedSinceCreation(long elapsedTimeMs)
elapsedTimeMs - the elapsed time to check, in millisecondspublic boolean isFullyProcessed()
Copyright © 2018–2019 ODPi. All rights reserved.