クラス DelegatingSecurityContextScheduledExecutorService
- java.lang.Object
-
- org.springframework.security.concurrent.DelegatingSecurityContextExecutor
-
- org.springframework.security.concurrent.DelegatingSecurityContextExecutorService
-
- org.springframework.security.concurrent.DelegatingSecurityContextScheduledExecutorService
- 実装されているすべてのインターフェース:
java.util.concurrent.Executor、java.util.concurrent.ExecutorService、java.util.concurrent.ScheduledExecutorService
public final class DelegatingSecurityContextScheduledExecutorService extends DelegatingSecurityContextExecutorService implements java.util.concurrent.ScheduledExecutorService
各RunnableをDelegatingSecurityContextRunnableに、各CallableをDelegatingSecurityContextCallableにラップするScheduledExecutorService。- 導入:
- 3.2
コンストラクターの概要
コンストラクター コンストラクター 説明 DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate)SecurityContextHolderから現在のSecurityContextを使用する新しいDelegatingSecurityContextScheduledExecutorServiceを作成します。DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegateScheduledExecutorService, SecurityContext securityContext)指定されたSecurityContextを使用する新しいDelegatingSecurityContextScheduledExecutorServiceを作成します。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 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)クラス org.springframework.security.concurrent.DelegatingSecurityContextExecutorService から継承されたメソッド
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
クラス org.springframework.security.concurrent.DelegatingSecurityContextExecutor から継承されたメソッド
execute, getDelegateExecutor, setSecurityContextHolderStrategy
コンストラクターの詳細
DelegatingSecurityContextScheduledExecutorService
public DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegateScheduledExecutorService, SecurityContext securityContext)指定されたSecurityContextを使用する新しいDelegatingSecurityContextScheduledExecutorServiceを作成します。- パラメーター:
delegateScheduledExecutorService- 委譲先のScheduledExecutorServicenull にはできません。securityContext- 各DelegatingSecurityContextRunnableおよび各DelegatingSecurityContextCallableに使用するSecurityContext
DelegatingSecurityContextScheduledExecutorService
public DelegatingSecurityContextScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate)
SecurityContextHolderから現在のSecurityContextを使用する新しいDelegatingSecurityContextScheduledExecutorServiceを作成します。- パラメーター:
delegate- 委譲先のScheduledExecutorServicenull にはできません。
メソッドの詳細
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)- 次で指定:
- インターフェース
java.util.concurrent.ScheduledExecutorServiceのschedule
schedule
public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)- 次で指定:
- インターフェース
java.util.concurrent.ScheduledExecutorServiceのschedule
scheduleAtFixedRate
public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)- 次で指定:
- インターフェース
java.util.concurrent.ScheduledExecutorServiceのscheduleAtFixedRate
scheduleWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)- 次で指定:
- インターフェース
java.util.concurrent.ScheduledExecutorServiceのscheduleWithFixedDelay
wrap
protected final java.lang.Runnable wrap(java.lang.Runnable delegate)
wrap
protected final <T> java.util.concurrent.Callable<T> wrap(java.util.concurrent.Callable<T> delegate)