org.mobicents.servlet.sip.core.timers
Class ExecutorServiceWrapper
java.lang.Object
org.mobicents.servlet.sip.core.timers.ExecutorServiceWrapper
public class ExecutorServiceWrapper
- extends java.lang.Object
|
Method Summary |
void |
execute(java.lang.Runnable r)
Executes the Runnable in a thread pool of worker threads |
static ExecutorServiceWrapper |
getInstance()
|
void |
initialize()
|
void |
initialize(int threadPoolSize)
|
boolean |
isShutdown()
|
void |
purge()
|
boolean |
remove(java.lang.Runnable task)
|
java.util.concurrent.ScheduledFuture<?> |
schedule(java.util.concurrent.Callable<?> command,
long delay,
java.util.concurrent.TimeUnit unit)
|
java.util.concurrent.ScheduledFuture<?> |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
|
java.util.concurrent.ScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ExecutorServiceWrapper getInstance()
isShutdown
public boolean isShutdown()
shutdown
public void shutdown()
initialize
public void initialize(int threadPoolSize)
initialize
public void initialize()
execute
public void execute(java.lang.Runnable r)
- Executes the Runnable in a thread pool of worker threads
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit)
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(java.util.concurrent.Callable<?> command,
long delay,
java.util.concurrent.TimeUnit unit)
scheduleAtFixedRate
public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
scheduleWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit)
purge
public void purge()
remove
public boolean remove(java.lang.Runnable task)
Copyright © 2009. All Rights Reserved.