com.hazelcast.client
Class ExecutorServiceClientProxy

java.lang.Object
  extended by com.hazelcast.client.ExecutorServiceClientProxy
All Implemented Interfaces:
Executor, ExecutorService

public class ExecutorServiceClientProxy
extends Object
implements ExecutorService


Constructor Summary
ExecutorServiceClientProxy(HazelcastClient client, String name)
           
 
Method Summary
 boolean awaitTermination(long l, TimeUnit timeUnit)
           
 void execute(Runnable runnable)
           
 List<Future> invokeAll(Collection tasks)
           
 List invokeAll(Collection tasks, long timeout, TimeUnit unit)
           
 Object invokeAny(Collection tasks)
           
 Object invokeAny(Collection tasks, long timeout, TimeUnit unit)
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 List<Runnable> shutdownNow()
           
<T> Future<T>
submit(Callable<T> callable)
           
 Future<?> submit(Runnable runnable)
           
<T> Future<T>
submit(Runnable runnable, T t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorServiceClientProxy

public ExecutorServiceClientProxy(HazelcastClient client,
                                  String name)
Method Detail

shutdown

public void shutdown()
Specified by:
shutdown in interface ExecutorService

shutdownNow

public List<Runnable> shutdownNow()
Specified by:
shutdownNow in interface ExecutorService

isShutdown

public boolean isShutdown()
Specified by:
isShutdown in interface ExecutorService

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface ExecutorService

awaitTermination

public boolean awaitTermination(long l,
                                TimeUnit timeUnit)
                         throws InterruptedException
Specified by:
awaitTermination in interface ExecutorService
Throws:
InterruptedException

submit

public <T> Future<T> submit(Callable<T> callable)
Specified by:
submit in interface ExecutorService

submit

public <T> Future<T> submit(Runnable runnable,
                            T t)
Specified by:
submit in interface ExecutorService

submit

public Future<?> submit(Runnable runnable)
Specified by:
submit in interface ExecutorService

invokeAll

public List<Future> invokeAll(Collection tasks)
                       throws InterruptedException
Specified by:
invokeAll in interface ExecutorService
Throws:
InterruptedException

invokeAll

public List invokeAll(Collection tasks,
                      long timeout,
                      TimeUnit unit)
               throws InterruptedException
Specified by:
invokeAll in interface ExecutorService
Throws:
InterruptedException

invokeAny

public Object invokeAny(Collection tasks)
                 throws InterruptedException,
                        ExecutionException
Specified by:
invokeAny in interface ExecutorService
Throws:
InterruptedException
ExecutionException

invokeAny

public Object invokeAny(Collection tasks,
                        long timeout,
                        TimeUnit unit)
                 throws InterruptedException,
                        ExecutionException,
                        TimeoutException
Specified by:
invokeAny in interface ExecutorService
Throws:
InterruptedException
ExecutionException
TimeoutException

execute

public void execute(Runnable runnable)
Specified by:
execute in interface Executor


Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.