Modifier and type | Property and description |
---|---|
long | taskCount Replies the number of tasks that this service has to run. |
Modifier and type | Action and description |
---|---|
abstract void | applyBlockingConsumer([Logger],Iterable<T>,Consumer<T>) Submit a task on the collection's elements to the executor service and wait for the termination of all the tasks. |
abstract java.util.concurrent.Future<V> | executeAsap([Logger],Runnable) Submit a task to the executor service. |
abstract java.util.concurrent.Future<V> | executeAsap([Logger],Callable<V>) Submit a task to the executor service. |
abstract java.util.concurrent.Future<V> | executeAsap([Logger],T,Runnable) Submit a task to the executor service. |
abstract int | executeBlockingTask([Logger],int,int,Runnable) Submit a single task multiple times to the executor service. |
abstract void | executeBlockingTasks([Logger],[boolean],Collection<E>) Submit tasks to the executor service and wait for the termination of all the tasks. |
abstract void | executeNotBlockingTask([Logger],int,int,Runnable) Submit a single task multiple times to the executor service. |
abstract long | getTaskCount Replies the number of tasks that this service has to run. |
static void | neverReturn(Runnable) This function simulate the never return from this call. |
abstract void | purge Remove any canceled/terminated tasks from the lists of tasks. |
abstract boolean | remove(Runnable) Removes this task from the executor's internal queue if it is present, thus causing it not to be run if it has not already started. |
abstract java.util.concurrent.ScheduledFuture<V> | schedule([Logger],[long],[TimeUnit],Runnable) Schedule the given task. |
abstract java.util.concurrent.ScheduledFuture<V> | schedule([Logger],[long],[TimeUnit],Callable<V>) Schedule the given task. |
abstract java.util.concurrent.ScheduledFuture<V> | scheduleAtFixedRate([Logger],[long],[long],[TimeUnit],Runnable) Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on. |
abstract java.util.concurrent.ScheduledFuture<V> | scheduleWithFixedDelay([Logger],[long],[long],[TimeUnit],Runnable) Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. |
abstract void | toJson(JsonBuffer) Fill the given buffer with the state of the executor service. |
val taskCount : long
This property is an alias for the action: getTaskCount
def applyBlockingConsumer([Logger],Iterable<T>,Consumer<T>)with T
def executeAsap([Logger],Runnable) : java.util.concurrent.Future<V>
def executeAsap([Logger],Callable<V>) : java.util.concurrent.Future<V>with T
def executeAsap([Logger],T,Runnable) : java.util.concurrent.Future<V>with T
def executeBlockingTask([Logger],int,int,Runnable) : int
runGroupSize
indicates how many number of times the task will be run on a single thread.
This function is equivalent to:
br for(i in [ 1 .. (nbExecutions/runGroupSize) ])br dobr execute({br for(j in [1..runGroupSize]) {br task.runbr }br })br donebr
Caution: if a task
is failing, the exception will be output on the logger. This function never fails.
According to the implementation of the service, the given task may be run in the same or separated thread than the one of the caller.
If an exception occurs into the given consume, the exception is logged. It is never thrown by this function.
def executeBlockingTasks([Logger],[boolean],Collection<E>)
thrownExceptions
evaluates to true
. If it is evaluates to false
, the exception is logged.
def executeNotBlockingTask([Logger],int,int,Runnable)
runGroupSize
indicates how many number of times the task will be run on a single thread.
This function is equivalent to:
br for(i in [ 1 .. (nbExecutions/runGroupSize) ])br dobr execute({br for(j in [1..runGroupSize]) {br task.runbr }br })br donebr
Caution: if a task
is failing, the exception will be output on the logger. This function never fails.
According to the implementation of the service, the given task may be run in the same or separated thread than the one of the caller.
If an exception occurs into the given consume, the exception is logged. It is never thrown by this function.
def getTaskCount : long
def neverReturn(Runnable)
def purge
def remove(Runnable) : boolean
def schedule([Logger],[long],[TimeUnit],Runnable) : java.util.concurrent.ScheduledFuture<V>
def schedule([Logger],[long],[TimeUnit],Callable<V>) : java.util.concurrent.ScheduledFuture<V>with T
def scheduleAtFixedRate([Logger],[long],[long],[TimeUnit],Runnable) : java.util.concurrent.ScheduledFuture<V>
def scheduleWithFixedDelay([Logger],[long],[long],[TimeUnit],Runnable) : java.util.concurrent.ScheduledFuture<V>
def toJson(JsonBuffer)