public interface TaskPoolProtocol
extends org.ametiste.laplatform.protocol.Protocol
Protocol that allow to manage task pool. Task pool is abstract entity
that represent all tasks currently registered on this Routine instance.
Note, some protocol opertions may have distructive effect for entire application lifecicle, so if some mods are not trusted manage their access to this protocol.
| Modifier and Type | Method and Description |
|---|---|
java.util.UUID |
issueTask(java.lang.String taskScheme,
java.util.Map<java.lang.String,java.lang.String> params) |
long |
removeTasks(java.util.List<java.lang.String> states,
java.time.Instant afterDate)
Removes tasks that match the given state and completion time less than given.
|
java.util.UUID issueTask(java.lang.String taskScheme,
java.util.Map<java.lang.String,java.lang.String> params)
long removeTasks(java.util.List<java.lang.String> states,
java.time.Instant afterDate)
Removes tasks that match the given state and completion time less than given.