Package org.jboss.resteasy.concurrent
Class ContextualScheduledExecutorService
java.lang.Object
org.jboss.resteasy.concurrent.ContextualExecutorService
org.jboss.resteasy.concurrent.ContextualScheduledExecutorService
- All Implemented Interfaces:
- Executor,- ExecutorService,- ScheduledExecutorService
public class ContextualScheduledExecutorService
extends ContextualExecutorService
implements ScheduledExecutorService
An executor which wraps runnables and callables to capture the context of the
 current thread.
 
If a server is managed it's the responsibility of the user or container to manage the lifecycle of the wrapped executor service.
Note: if the executor is consider managed, for example running in a Jakarta EE environment, the following methods are effectively ignored.
- Since:
- 5.0.0
- Author:
- James R. Perkins
- 
Method SummaryModifier and TypeMethodDescription<V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from class org.jboss.resteasy.concurrent.ContextualExecutorServiceawaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isManaged, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorServiceawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
- 
Method Details- 
schedule- Specified by:
- schedulein interface- ScheduledExecutorService
 
- 
schedule- Specified by:
- schedulein interface- ScheduledExecutorService
 
- 
scheduleAtFixedRatepublic ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
- scheduleAtFixedRatein interface- ScheduledExecutorService
 
- 
scheduleWithFixedDelaypublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
- scheduleWithFixedDelayin interface- ScheduledExecutorService
 
 
-