public final class ClientDurableExecutorServiceProxy extends ClientProxy implements DurableExecutorService
DurableExecutorService.name| Constructor and Description | 
|---|
ClientDurableExecutorServiceProxy(String serviceName,
                                 String name,
                                 ClientContext context)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
awaitTermination(long timeout,
                TimeUnit unit)  | 
void | 
disposeResult(long taskId)
Disposes the result with the given taskId 
 | 
void | 
execute(Runnable task)  | 
void | 
executeOnKeyOwner(Runnable task,
                 Object key)
Executes a task on the owner of the specified key. 
 | 
<T> List<Future<T>> | 
invokeAll(Collection<? extends Callable<T>> tasks)  | 
<T> List<Future<T>> | 
invokeAll(Collection<? extends Callable<T>> tasks,
         long timeout,
         TimeUnit unit)  | 
<T> T | 
invokeAny(Collection<? extends Callable<T>> tasks)  | 
<T> T | 
invokeAny(Collection<? extends Callable<T>> tasks,
         long timeout,
         TimeUnit unit)  | 
boolean | 
isShutdown()  | 
boolean | 
isTerminated()  | 
protected void | 
onInitialize()
Called when proxy is created. 
 | 
<T> Future<T> | 
retrieveAndDisposeResult(long taskId)
Retrieves and disposes the result with the given taskId 
 | 
<T> Future<T> | 
retrieveResult(long taskId)
Retrieves the result with the given taskId 
 | 
void | 
shutdown()  | 
List<Runnable> | 
shutdownNow()  | 
<T> DurableExecutorServiceFuture<T> | 
submit(Callable<T> task)
Submits a value-returning task for execution and returns a
 Future representing the pending results of the task. 
 | 
DurableExecutorServiceFuture<?> | 
submit(Runnable task)
Submits a Runnable task for execution and returns a Future
 representing that task. 
 | 
<T> DurableExecutorServiceFuture<T> | 
submit(Runnable task,
      T result)
Submits a Runnable task for execution and returns a Future
 representing that task. 
 | 
<T> DurableExecutorServiceFuture<T> | 
submitToKeyOwner(Callable<T> task,
                Object key)
Submits a task to the owner of the specified key and returns a Future
 representing that task. 
 | 
DurableExecutorServiceFuture<?> | 
submitToKeyOwner(Runnable task,
                Object key)
Submits a task to the owner of the specified key and returns a Future
 representing that task. 
 | 
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic ClientDurableExecutorServiceProxy(String serviceName, String name, ClientContext context)
protected void onInitialize()
ClientProxyonInitialize in class ClientProxypublic <T> Future<T> retrieveResult(long taskId)
DurableExecutorServiceretrieveResult in interface DurableExecutorServiceT - the type of the task's resulttaskId - combination of partitionId and sequencepublic void disposeResult(long taskId)
DurableExecutorServicedisposeResult in interface DurableExecutorServicetaskId - combination of partitionId and sequencepublic <T> Future<T> retrieveAndDisposeResult(long taskId)
DurableExecutorServiceretrieveAndDisposeResult in interface DurableExecutorServiceT - the type of the task's resulttaskId - combination of partitionId and sequencepublic void executeOnKeyOwner(Runnable task, Object key)
DurableExecutorServiceexecuteOnKeyOwner in interface DurableExecutorServicetask - a task executed on the owner of the specified keykey - the specified keypublic <T> DurableExecutorServiceFuture<T> submitToKeyOwner(Callable<T> task, Object key)
DurableExecutorServicesubmitToKeyOwner in interface DurableExecutorServicetask - task submitted to the owner of the specified keykey - the specified keypublic DurableExecutorServiceFuture<?> submitToKeyOwner(Runnable task, Object key)
DurableExecutorServicesubmitToKeyOwner in interface DurableExecutorServicetask - task submitted to the owner of the specified keykey - the specified keypublic <T> DurableExecutorServiceFuture<T> submit(Callable<T> task)
DurableExecutorServiceget method will return the task's result upon
 successful completion.
 
 If you would like to immediately block waiting
 for a task, you can use constructions of the form
 result = exec.submit(aCallable).get();
 
Note: The Executors class includes a set of methods
 that can convert some other common closure-like objects,
 for example, PrivilegedAction to
 Callable form so they can be submitted.
submit in interface DurableExecutorServicesubmit in interface ExecutorServiceT - the type of the task's resulttask - the task to submitpublic <T> DurableExecutorServiceFuture<T> submit(Runnable task, T result)
DurableExecutorServiceget method will
 return the given result upon successful completion.submit in interface DurableExecutorServicesubmit in interface ExecutorServiceT - the type of the resulttask - the task to submitresult - the result to returnpublic DurableExecutorServiceFuture<?> submit(Runnable task)
DurableExecutorServiceget method will
 return null upon successful completion.submit in interface DurableExecutorServicesubmit in interface ExecutorServicetask - the task to submitpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean awaitTermination(long timeout,
                                TimeUnit unit)
                         throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionpublic void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServiceCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.