public class BusyExecutor extends Object
| Constructor and Description |
|---|
BusyExecutor(String name,
IgniteThreadPoolExecutor pool,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Allow operations.
|
boolean |
busyRun(Runnable r)
Run task on busy lock.
|
void |
deactivate(Runnable r)
Stop all running tasks.
|
void |
execute(Runnable r)
Execute task in thread pool under busy lock.
|
CompletableFuture<Boolean> |
submit(Runnable r)
Submit task to execute in thread pool under busy lock.
|
public BusyExecutor(String name, IgniteThreadPoolExecutor pool, Function<Class<?>,IgniteLogger> logSupplier)
name - Executor name.pool - Underlying thread pool executor.logSupplier - Log supplier.public void activate()
public void deactivate(Runnable r)
r - Runnable to cancel all scheduled tasks.public boolean busyRun(Runnable r)
r - Task to run.true if task was succesfully scheduled, false - otherwise (due to inactive state)public CompletableFuture<Boolean> submit(Runnable r)
r - Task to execute.public void execute(Runnable r)
r - Task to execute.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025