public interface ExecutorServiceCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
cancelOnAddress(String uuid,
Address address,
boolean interrupt) |
Object |
cancelOnPartition(String uuid,
int partitionId,
boolean interrupt) |
Object |
isShutdown(String name)
Returns true if this executor has been shut down.
|
void |
shutdown(String name)
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
|
Object |
submitToAddress(String name,
String uuid,
Data callable,
Address address) |
Object |
submitToPartition(String name,
String uuid,
Data callable,
int partitionId) |
void shutdown(String name)
name
- Name of the executor.Object isShutdown(String name)
name
- Name of the executor.Object cancelOnPartition(String uuid, int partitionId, boolean interrupt)
uuid
- Unique id for the execution.partitionId
- The id of the partition to execute this cancellation request.interrupt
- If true, then the thread interrupt call can be used to cancel the thread, otherwise interrupt can not be used.Object cancelOnAddress(String uuid, Address address, boolean interrupt)
uuid
- Unique id for the execution.address
- Address of the host to execute the request on.interrupt
- If true, then the thread interrupt call can be used to cancel the thread, otherwise interrupt can not be used.Object submitToPartition(String name, String uuid, Data callable, int partitionId)
name
- Name of the executor.uuid
- Unique id for the execution.callable
- The callable object to be executed.partitionId
- The id of the partition to execute this cancellation request.Object submitToAddress(String name, String uuid, Data callable, Address address)
name
- Name of the executor.uuid
- Unique id for the execution.callable
- The callable object to be executed.address
- The member host on which the callable shall be executed on.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.