Class SecurityAwareStripedThreadPoolExecutor
- java.lang.Object
-
- org.apache.ignite.thread.IgniteStripedThreadPoolExecutor
-
- org.apache.ignite.internal.processors.security.thread.SecurityAwareStripedThreadPoolExecutor
-
- All Implemented Interfaces:
Executor,ExecutorService,MetricsAwareExecutorService
public class SecurityAwareStripedThreadPoolExecutor extends IgniteStripedThreadPoolExecutor
ExtendsIgniteStripedThreadPoolExecutorwith the ability to execute tasks in security context that was actual when task was added to executor's queue.
-
-
Constructor Summary
Constructors Constructor Description SecurityAwareStripedThreadPoolExecutor(IgniteSecurity security, int concurrentLvl, String igniteInstanceName, String threadNamePrefix, Thread.UncaughtExceptionHandler eHnd, boolean allowCoreThreadTimeOut, long keepAliveTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable task, int idx)Executes the given command at some time in the future.-
Methods inherited from class org.apache.ignite.thread.IgniteStripedThreadPoolExecutor
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, registerMetrics, shutdown, shutdownNow, submit, submit, submit, threadId, toString
-
-
-
-
Constructor Detail
-
SecurityAwareStripedThreadPoolExecutor
public SecurityAwareStripedThreadPoolExecutor(IgniteSecurity security, int concurrentLvl, String igniteInstanceName, String threadNamePrefix, Thread.UncaughtExceptionHandler eHnd, boolean allowCoreThreadTimeOut, long keepAliveTime)
-
-
Method Detail
-
execute
public void execute(Runnable task, int idx)
Executes the given command at some time in the future. The command with the sameindexwill be executed in the same thread.- Overrides:
executein classIgniteStripedThreadPoolExecutor- Parameters:
task- the runnable taskidx- Striped index.
-
-