Class Task


  • public class Task
    extends Object

    Provides a Queue API task class.

    Since:
    1.0
    See Also:
    FailedTask
    • Method Detail

      • getId

        public String getId()
        Returns:
        the task id
      • getLeaseId

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

        public String getPayloadType()
        Returns:
        the task payload type
      • getPayload

        public Map<String,​Object> getPayload()
        Returns:
        the task payload
      • newBuilder

        public static Task.Builder newBuilder()
        Returns:
        a new Task builder
      • toString

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