Class WorkUnit


  • public class WorkUnit
    extends java.lang.Object
    The Class WorkUnit.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private CAS[] cas
      The cas.
      private java.lang.Object payload
      The payload.
      private boolean timedout
      The timedout.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkUnit​(java.lang.Object aPayload)
      Instantiates a new work unit.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get()
      Gets the.
      CAS[] getCas()
      Gets the cas.
      boolean isTimedOut()
      Checks if is timed out.
      void setCas​(CAS[] aCas)
      Sets the cas.
      void setTimedOut()
      Sets the timed out.
      • Methods inherited from class java.lang.Object

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

      • payload

        private java.lang.Object payload
        The payload.
      • cas

        private CAS[] cas
        The cas.
      • timedout

        private boolean timedout
        The timedout.
    • Constructor Detail

      • WorkUnit

        public WorkUnit​(java.lang.Object aPayload)
        Instantiates a new work unit.
        Parameters:
        aPayload - the a payload
    • Method Detail

      • get

        public java.lang.Object get()
        Gets the.
        Returns:
        the object
      • setCas

        public void setCas​(CAS[] aCas)
        Sets the cas.
        Parameters:
        aCas - the new cas
      • getCas

        public CAS[] getCas()
        Gets the cas.
        Returns:
        the cas
      • setTimedOut

        public void setTimedOut()
        Sets the timed out.
      • isTimedOut

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