public final class ClientExecutionServiceImpl extends Object implements ClientExecutionService
Constructor and Description |
---|
ClientExecutionServiceImpl(String name,
ThreadGroup threadGroup,
ClassLoader classLoader,
ClientProperties properties,
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)
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() |
static void |
shutdownExecutor(String name,
ExecutorService executor,
ILogger logger) |
<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, ClientProperties properties, 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)
schedule
in interface ClientExecutionService
command
- delay
- unit
- 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 static void shutdownExecutor(String name, ExecutorService executor, ILogger logger)
public ExecutorService getInternalExecutor()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.