public class SecurityAwareThreadPoolExecutor extends IgniteThreadPoolExecutor
ThreadPoolExecutor with the ability to execute tasks in security context that was actual when task was
added to executor's queue.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
SecurityAwareThreadPoolExecutor(IgniteSecurity security,
String threadNamePrefix,
String igniteInstanceName,
int corePoolSize,
int maxPoolSize,
long keepAliveTime,
BlockingQueue<Runnable> workQ,
byte plc,
Thread.UncaughtExceptionHandler eHnd) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(@NotNull Runnable cmd) |
<T> @NotNull List<Future<T>> |
invokeAll(@NotNull Collection<? extends Callable<T>> tasks) |
<T> @NotNull List<Future<T>> |
invokeAll(@NotNull Collection<? extends Callable<T>> tasks,
long timeout,
@NotNull TimeUnit unit) |
<T> T |
invokeAny(@NotNull Collection<? extends Callable<T>> tasks) |
<T> T |
invokeAny(@NotNull Collection<? extends Callable<T>> tasks,
long timeout,
@NotNull TimeUnit unit) |
<T> @NotNull Future<T> |
submit(@NotNull Callable<T> task) |
@NotNull Future<?> |
submit(@NotNull Runnable task) |
<T> @NotNull Future<T> |
submit(@NotNull Runnable task,
T res) |
afterExecute, beforeExecute, executionTimeMetric, registerMetricsallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringnewTaskFor, newTaskForpublic SecurityAwareThreadPoolExecutor(IgniteSecurity security, String threadNamePrefix, String igniteInstanceName, int corePoolSize, int maxPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQ, byte plc, Thread.UncaughtExceptionHandler eHnd)
@NotNull public <T> @NotNull Future<T> submit(@NotNull @NotNull Callable<T> task)
submit in interface ExecutorServicesubmit in class AbstractExecutorService@NotNull public <T> @NotNull Future<T> submit(@NotNull @NotNull Runnable task, T res)
submit in interface ExecutorServicesubmit in class AbstractExecutorService@NotNull public @NotNull Future<?> submit(@NotNull @NotNull Runnable task)
submit in interface ExecutorServicesubmit in class AbstractExecutorService@NotNull public <T> @NotNull List<Future<T>> invokeAll(@NotNull @NotNull Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class AbstractExecutorServiceInterruptedException@NotNull public <T> @NotNull List<Future<T>> invokeAll(@NotNull @NotNull Collection<? extends Callable<T>> tasks, long timeout, @NotNull @NotNull TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class AbstractExecutorServiceInterruptedException@NotNull
public <T> T invokeAny(@NotNull
@NotNull Collection<? extends Callable<T>> tasks)
throws InterruptedException,
ExecutionException
invokeAny in interface ExecutorServiceinvokeAny in class AbstractExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(@NotNull
@NotNull Collection<? extends Callable<T>> tasks,
long timeout,
@NotNull
@NotNull TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
invokeAny in interface ExecutorServiceinvokeAny in class AbstractExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic void execute(@NotNull
@NotNull Runnable cmd)
execute in interface Executorexecute in class ThreadPoolExecutor
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023