org.apache.uima.collection.impl.cpm.utils
Class QueueEntity

java.lang.Object
  extended by org.apache.uima.collection.impl.cpm.utils.QueueEntity

public class QueueEntity
extends java.lang.Object

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
QueueEntity(java.lang.Object anEntity, boolean hasTimedOut)
          Initialize the instance with the Entity (CAS) and the timeout
 
Method Summary
 java.lang.Object getEntity()
           
 boolean isTimedOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueEntity

public QueueEntity(java.lang.Object anEntity,
                   boolean hasTimedOut)
Initialize the instance with the Entity (CAS) and the timeout

Method Detail

getEntity

public java.lang.Object getEntity()
Returns:

isTimedOut

public boolean isTimedOut()
Returns:


Copyright © 2013. All Rights Reserved.