Class DelegatingSecurityContextScheduledExecutorService
- java.lang.Object
- 
- org.springframework.security.concurrent.DelegatingSecurityContextExecutor
- 
- org.springframework.security.concurrent.DelegatingSecurityContextExecutorService
- 
- org.springframework.security.concurrent.DelegatingSecurityContextScheduledExecutorService
 
 
 
- 
- All Implemented Interfaces:
- java.util.concurrent.Executor,- java.util.concurrent.ExecutorService,- java.util.concurrent.ScheduledExecutorService
 
 public final class DelegatingSecurityContextScheduledExecutorService extends DelegatingSecurityContextExecutorService implements java.util.concurrent.ScheduledExecutorService AnScheduledExecutorServicewhich wraps eachRunnablein aDelegatingSecurityContextRunnableand eachCallablein aDelegatingSecurityContextCallable.- Since:
- 3.2
 
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate)Creates a newDelegatingSecurityContextScheduledExecutorServicethat uses the currentSecurityContextfrom theSecurityContextHolder.DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegateScheduledExecutorService, SecurityContext securityContext)Creates a newDelegatingSecurityContextScheduledExecutorServicethat uses the specifiedSecurityContext.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ScheduledFuture<?>schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)<V> java.util.concurrent.ScheduledFuture<V>schedule(java.util.concurrent.Callable<V> callable, 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)protected java.lang.Runnablewrap(java.lang.Runnable delegate)protected <T> java.util.concurrent.Callable<T>wrap(java.util.concurrent.Callable<T> delegate)- 
Methods inherited from class org.springframework.security.concurrent.DelegatingSecurityContextExecutorServiceawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
 - 
Methods inherited from class org.springframework.security.concurrent.DelegatingSecurityContextExecutorexecute, getDelegateExecutor
 
- 
 
- 
- 
- 
Constructor Detail- 
DelegatingSecurityContextScheduledExecutorServicepublic DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegateScheduledExecutorService, SecurityContext securityContext)Creates a newDelegatingSecurityContextScheduledExecutorServicethat uses the specifiedSecurityContext.- Parameters:
- delegateScheduledExecutorService- the- ScheduledExecutorServiceto delegate to. Cannot be null.
- securityContext- the- SecurityContextto use for each- DelegatingSecurityContextRunnableand each- DelegatingSecurityContextCallable.
 
 - 
DelegatingSecurityContextScheduledExecutorServicepublic DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate) Creates a newDelegatingSecurityContextScheduledExecutorServicethat uses the currentSecurityContextfrom theSecurityContextHolder.- Parameters:
- delegate- the- ScheduledExecutorServiceto delegate to. Cannot be null.
 
 
- 
 - 
Method Detail- 
schedulepublic java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
- schedulein interface- java.util.concurrent.ScheduledExecutorService
 
 - 
schedulepublic <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
- schedulein interface- java.util.concurrent.ScheduledExecutorService
 
 - 
scheduleAtFixedRatepublic java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)- Specified by:
- scheduleAtFixedRatein interface- java.util.concurrent.ScheduledExecutorService
 
 - 
scheduleWithFixedDelaypublic java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
- scheduleWithFixedDelayin interface- java.util.concurrent.ScheduledExecutorService
 
 - 
wrapprotected final java.lang.Runnable wrap(java.lang.Runnable delegate) 
 - 
wrapprotected final <T> java.util.concurrent.Callable<T> wrap(java.util.concurrent.Callable<T> delegate) 
 
- 
 
-