Class SubjectAwareScheduledExecutorService
java.lang.Object
org.apache.shiro.concurrent.SubjectAwareExecutor
org.apache.shiro.concurrent.SubjectAwareExecutorService
org.apache.shiro.concurrent.SubjectAwareScheduledExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService
public class SubjectAwareScheduledExecutorService
extends SubjectAwareExecutorService
implements ScheduledExecutorService
Same concept as the
SubjectAwareExecutorService but additionally supports the
ScheduledExecutorService interface.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription<V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) voidsetTargetExecutor(Executor targetExecutor) Sets target Executor instance that will actually execute the subject-associated Runnable instances.voidsetTargetExecutorService(ExecutorService targetExecutorService) voidsetTargetScheduledExecutorService(ScheduledExecutorService targetScheduledExecutorService) Methods inherited from class org.apache.shiro.concurrent.SubjectAwareExecutorService
associateWithSubject, associateWithSubject, awaitTermination, getTargetExecutorService, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class org.apache.shiro.concurrent.SubjectAwareExecutor
associateWithSubject, execute, getSubject, getTargetExecutorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Constructor Details
-
SubjectAwareScheduledExecutorService
public SubjectAwareScheduledExecutorService() -
SubjectAwareScheduledExecutorService
-
-
Method Details
-
getTargetScheduledExecutorService
-
setTargetScheduledExecutorService
public void setTargetScheduledExecutorService(ScheduledExecutorService targetScheduledExecutorService) -
setTargetExecutor
Description copied from class:SubjectAwareExecutorSets target Executor instance that will actually execute the subject-associated Runnable instances.- Overrides:
setTargetExecutorin classSubjectAwareExecutorService- Parameters:
targetExecutor- the target Executor instance that will actually execute the subject-associated Runnable instances.
-
setTargetExecutorService
- Overrides:
setTargetExecutorServicein classSubjectAwareExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-