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()
                      throws NitricException
        Complete the received task using its lease id.
        Throws:
        NitricException - if a Queue Service API error occurs
      • newReceivedTaskBuilder

        public static ReceivedTask.ReceivedTaskBuilder newReceivedTaskBuilder()
        Return a new ReceivedTask builder.
        Returns:
        a new ReceivedTask builder
      • toString

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