com.github.libxjava.concurrent
Class ScheduledTaskExecutor

java.lang.Object
  extended by com.github.libxjava.concurrent.ScheduledTaskExecutor

public class ScheduledTaskExecutor
extends Object

Version:
libxjava-cldc - 0.3
Author:
Marcel Patzlaff

Constructor Summary
ScheduledTaskExecutor(int initialPoolSize, int maxPoolSize, long keepAliveTimeInMillis, IThreadFactory threadFactory)
           
 
Method Summary
protected  void afterExecute(TaskFuture task, Throwable t)
           
protected  void beforeExecute(Thread workThread, TaskFuture task)
           
protected  TaskFuture createTaskFuture(Object target)
           
 TaskFuture schedule(Runnable target, long delayInMillis)
           
 TaskFuture scheduleAtFixedRate(Runnable target, long delayInMillis, long periodInMillis)
           
 TaskFuture submit(Runnable target)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduledTaskExecutor

public ScheduledTaskExecutor(int initialPoolSize,
                             int maxPoolSize,
                             long keepAliveTimeInMillis,
                             IThreadFactory threadFactory)
Method Detail

submit

public TaskFuture submit(Runnable target)

schedule

public TaskFuture schedule(Runnable target,
                           long delayInMillis)

scheduleAtFixedRate

public TaskFuture scheduleAtFixedRate(Runnable target,
                                      long delayInMillis,
                                      long periodInMillis)

beforeExecute

protected void beforeExecute(Thread workThread,
                             TaskFuture task)

afterExecute

protected void afterExecute(TaskFuture task,
                            Throwable t)

createTaskFuture

protected TaskFuture createTaskFuture(Object target)


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.