Package org.apache.shiro.concurrent
Class SubjectAwareScheduledExecutorService
-
- org.apache.shiro.concurrent.SubjectAwareExecutor
-
- org.apache.shiro.concurrent.SubjectAwareExecutorService
-
- org.apache.shiro.concurrent.SubjectAwareScheduledExecutorService
-
- All Implemented Interfaces:
,
,
public class SubjectAwareScheduledExecutorService extends SubjectAwareExecutorService implements
Same concept as theSubjectAwareExecutorService
but additionally supports the interface.
-
-
Constructor Summary
Constructors Constructor Description SubjectAwareScheduledExecutorService()
target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getTargetScheduledExecutorService()
<?>
command, long delay, unit)
<V> <V>
<V> callable, long delay, unit)
<?>
command, long initialDelay, long period, unit)
<?>
command, long initialDelay, long delay, unit)
void
targetExecutor)
Sets target Executor instance that will actually execute the subject-associated Runnable instances.void
targetExecutorService)
void
targetScheduledExecutorService)
-
Methods inherited from class org.apache.shiro.concurrent.SubjectAwareExecutorService
associateWithSubject, associateWithSubject, awaitTermination, getTargetExecutorService, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Methods inherited from class org.apache.shiro.concurrent.SubjectAwareExecutor
associateWithSubject, execute, getSubject, getTargetExecutor
-
-
-
-
Method Detail
-
getTargetScheduledExecutorService
public getTargetScheduledExecutorService()
-
setTargetScheduledExecutorService
public void setTargetScheduledExecutorService( targetScheduledExecutorService)
-
setTargetExecutor
public void setTargetExecutor( targetExecutor)
Description copied from class:SubjectAwareExecutor
Sets target Executor instance that will actually execute the subject-associated Runnable instances.- Overrides:
setTargetExecutor
in classSubjectAwareExecutorService
- Parameters:
targetExecutor
- the target Executor instance that will actually execute the subject-associated Runnable instances.
-
setTargetExecutorService
public void setTargetExecutorService( targetExecutorService)
- Overrides:
setTargetExecutorService
in classSubjectAwareExecutorService
-
schedule
public <?> schedule( command, long delay, unit)
- Specified by:
in interface
-
schedule
public <V> <V> schedule(<V> callable, long delay, unit)
- Specified by:
in interface
-
scheduleAtFixedRate
public <?> scheduleAtFixedRate( command, long initialDelay, long period, unit)
- Specified by:
in interface
-
scheduleWithFixedDelay
public <?> scheduleWithFixedDelay( command, long initialDelay, long delay, unit)
- Specified by:
in interface
-
-