Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object entity
      The entity.
      private boolean timedOut
      The timed out.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueueEntity​(java.lang.Object anEntity, boolean hasTimedOut)
      Initialize the instance with the Entity (CAS) and the timeout.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getEntity()
      Gets the entity.
      boolean isTimedOut()
      Checks if is timed out.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • timedOut

        private boolean timedOut
        The timed out.
      • entity

        private java.lang.Object entity
        The entity.
    • Constructor Detail

      • QueueEntity

        public QueueEntity​(java.lang.Object anEntity,
                           boolean hasTimedOut)
        Initialize the instance with the Entity (CAS) and the timeout.
        Parameters:
        anEntity - the an entity
        hasTimedOut - the has timed out
    • Method Detail

      • getEntity

        public java.lang.Object getEntity()
        Gets the entity.
        Returns:
        the entity
      • isTimedOut

        public boolean isTimedOut()
        Checks if is timed out.
        Returns:
        true if timed out