Package jenkins.security
Class ImpersonatingScheduledExecutorService
- java.lang.Object
-
- jenkins.util.InterceptingExecutorService
-
- jenkins.util.InterceptingScheduledExecutorService
-
- jenkins.security.ImpersonatingScheduledExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
,ScheduledExecutorService
public final class ImpersonatingScheduledExecutorService extends InterceptingScheduledExecutorService
Variant ofImpersonatingExecutorService
for scheduled services.- Since:
- 2.51
-
-
Constructor Summary
Constructors Constructor Description ImpersonatingScheduledExecutorService(ScheduledExecutorService base, Authentication authentication)
ImpersonatingScheduledExecutorService(ScheduledExecutorService base, org.springframework.security.core.Authentication authentication)
Creates a wrapper service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Runnable
wrap(Runnable r)
protected <V> Callable<V>
wrap(Callable<V> r)
-
Methods inherited from class jenkins.util.InterceptingScheduledExecutorService
delegate, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
-
Methods inherited from class jenkins.util.InterceptingExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
-
-
-
Constructor Detail
-
ImpersonatingScheduledExecutorService
public ImpersonatingScheduledExecutorService(ScheduledExecutorService base, org.springframework.security.core.Authentication authentication)
Creates a wrapper service.- Parameters:
base
- the base serviceauthentication
- for exampleACL.SYSTEM2
- Since:
- 2.266
-
ImpersonatingScheduledExecutorService
@Deprecated public ImpersonatingScheduledExecutorService(ScheduledExecutorService base, Authentication authentication)
-
-
Method Detail
-
wrap
protected Runnable wrap(Runnable r)
- Specified by:
wrap
in classInterceptingExecutorService
-
wrap
protected <V> Callable<V> wrap(Callable<V> r)
- Specified by:
wrap
in classInterceptingExecutorService
-
-