Class QueueEntity
java.lang.Object
org.apache.uima.collection.impl.cpm.utils.QueueEntity
Convenience wrapper that is internally used by the CPM. Created in the OutputQueue this wrapper
contains the CAS and additional information needed to determine if the CAS contained has arrived
later than expected Normally the CAS would be marked as NOT timed out. In case of chunking, the
CAS may come after a timeout occurs. In this case the CPM needs to know this and take appropriate
action.
-
Constructor Summary
ConstructorDescriptionQueueEntity
(Object anEntity, boolean hasTimedOut) Initialize the instance with the Entity (CAS) and the timeout. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity.boolean
Checks if is timed out.
-
Constructor Details
-
QueueEntity
Initialize the instance with the Entity (CAS) and the timeout.- Parameters:
anEntity
- the an entityhasTimedOut
- the has timed out
-
-
Method Details
-
getEntity
Gets the entity.- Returns:
- the entity
-
isTimedOut
public boolean isTimedOut()Checks if is timed out.- Returns:
- true if timed out
-