Package io.nitric.api.queue
Class ReceivedTask
- java.lang.Object
-
- io.nitric.api.queue.Task
-
- io.nitric.api.queue.ReceivedTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.nitric.api.queue.Task
Task.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete()
Complete the received task using its lease id.String
getLeaseId()
Return the lease id unique to the pop request, this is used to complete, extend the lease or release the task.String
getQueue()
Return the name of the received task queue.String
toString()
Return the string representation of this object.-
Methods inherited from class io.nitric.api.queue.Task
getId, getPayload, getPayloadType, newBuilder
-
-
-
-
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.
-
-