public interface OperationReservationService
Defines interface to do task's operation reservation for termination.
DefaultOperationReservationService| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.ametiste.routine.domain.task.ExecutionLine> |
reserveOperationsExecution(int reservationCount)
Reserv the number of 'NEW' task's operations for next termination, provides information about
operations reserved.
|
java.util.List<org.ametiste.routine.domain.task.ExecutionLine> reserveOperationsExecution(int reservationCount)
Reserv the number of 'NEW' task's operations for next termination, provides information about operations reserved.
Note, if the service can't find enough operations to reserv, available amount would be reserved.
For example, if only 5 'NEW' opertions are available, and requested reservation count is 7, only 5 operations will be reserved.
If there is 0 of 'NEW' operations, nothing will be reserved.
reservationCount - maximu reservated operations count