org.jboss.threads
Class ProtectedScheduledExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.jboss.threads.ProtectedExecutorService
org.jboss.threads.ProtectedScheduledExecutorService
- All Implemented Interfaces:
- java.util.concurrent.Executor, java.util.concurrent.ExecutorService, java.util.concurrent.ScheduledExecutorService
public class ProtectedScheduledExecutorService
- extends ProtectedExecutorService
- implements java.util.concurrent.ScheduledExecutorService
An implementation of ScheduledExecutorService
that delegates to the real executor, while disallowing termination.
Method Summary |
<V> java.util.concurrent.ScheduledFuture<V> |
|
schedule(java.util.concurrent.Callable<V> callable,
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)
|
Methods inherited from class java.util.concurrent.AbstractExecutorService |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.concurrent.ExecutorService |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
Methods inherited from interface java.util.concurrent.Executor |
execute |
ProtectedScheduledExecutorService
public ProtectedScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate)
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interface java.util.concurrent.ScheduledExecutorService
schedule
public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable,
long delay,
java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interface java.util.concurrent.ScheduledExecutorService
scheduleAtFixedRate
public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRate
in interface java.util.concurrent.ScheduledExecutorService
scheduleWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelay
in interface java.util.concurrent.ScheduledExecutorService
Copyright © 2011. All Rights Reserved.