Package org.onosproject.store.service
Class Task<E>
- java.lang.Object
-
- org.onosproject.store.service.Task<E>
-
-
Method Detail
-
taskId
public String taskId()
Returns the task identifier.- Returns:
- task id
-
payload
public E payload()
Returns the task payload.- Returns:
- task payload
-
map
public <F> Task<F> map(Function<E,F> mapper)
Maps task from one payload type to another.- Type Parameters:
F
- future type- Parameters:
mapper
- type mapper.- Returns:
- mapped task.
-
-