Package io.nitric.api.queue
Class Task
- java.lang.Object
-
- io.nitric.api.queue.Task
-
- Direct Known Subclasses:
ReceivedTask
public class Task extends Object
Provides a Queue API Task class.
- See Also:
FailedTask
,ReceivedTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Task.Builder
Provides a Task builder class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Return the task id.Map<String,Object>
getPayload()
Return the task payload.String
getPayloadType()
Return the task payload type.static Task.Builder
newBuilder()
Return a new Task builder.String
toString()
Return the string representation of this object.
-
-
-
Method Detail
-
getId
public String getId()
Return the task id.- Returns:
- the task id
-
getPayloadType
public String getPayloadType()
Return the task payload type.- Returns:
- the task payload type
-
getPayload
public Map<String,Object> getPayload()
Return the task payload.- Returns:
- the task payload
-
newBuilder
public static Task.Builder newBuilder()
Return a new Task builder.- Returns:
- a new Task builder
-
-