public final class ClientExecutionServiceImpl extends Object implements ClientExecutionService
Constructor and Description |
---|
ClientExecutionServiceImpl(String name,
ThreadGroup threadGroup,
ClassLoader classLoader,
int poolSize) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable command)
Execute alien(user code) on execution service
|
void |
executeInternal(Runnable runnable) |
ExecutorService |
getAsyncExecutor() |
ExecutorService |
getInternalExecutor() |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit,
ExecutionCallback executionCallback)
Utilized when given command needs to make a remote call.
|
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
void |
shutdown() |
<T> ICompletableFuture<T> |
submit(Callable<T> task) |
ICompletableFuture<?> |
submit(Runnable task) |
<T> ICompletableFuture<T> |
submitInternal(Runnable runnable) |
public ClientExecutionServiceImpl(String name, ThreadGroup threadGroup, ClassLoader classLoader, int poolSize)
public void executeInternal(Runnable runnable)
public <T> ICompletableFuture<T> submitInternal(Runnable runnable)
public void execute(Runnable command)
ClientExecutionService
execute
in interface ClientExecutionService
execute
in interface Executor
command
- to runpublic ICompletableFuture<?> submit(Runnable task)
submit
in interface ClientExecutionService
public <T> ICompletableFuture<T> submit(Callable<T> task)
submit
in interface ClientExecutionService
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit, ExecutionCallback executionCallback)
command
- delay
- unit
- executionCallback
- public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface ClientExecutionService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface ClientExecutionService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleWithFixedDelay
in interface ClientExecutionService
public ExecutorService getAsyncExecutor()
getAsyncExecutor
in interface ClientExecutionService
public void shutdown()
public ExecutorService getInternalExecutor()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.