Class ReceivedTask


  • public class ReceivedTask
    extends Task

    Provides a Queue API Received Task class.

    See Also:
    Task
    • Method Detail

      • getLeaseId

        public String getLeaseId()
        Return the lease id unique to the pop request, this is used to complete, extend the lease or release the task.
        Returns:
        the task lease id, unique to the pop request.
      • getQueue

        public String getQueue()
        Return the name of the received task queue.
        Returns:
        the name of the received task queue.
      • complete

        public void complete()
        Complete the received task using its lease id.
      • toString

        public String toString()
        Return the string representation of this object.
        Overrides:
        toString in class Task
        Returns:
        the string representation of this object