com.hazelcast.client.proxy
Class ClientCountDownLatchProxy

java.lang.Object
  extended by com.hazelcast.client.spi.ClientProxy
      extended by com.hazelcast.client.proxy.ClientCountDownLatchProxy
All Implemented Interfaces:
DistributedObject, ICountDownLatch

public class ClientCountDownLatchProxy
extends ClientProxy
implements ICountDownLatch


Constructor Summary
ClientCountDownLatchProxy(String serviceName, String objectId)
           
 
Method Summary
 boolean await(long timeout, TimeUnit unit)
           
 void countDown()
           
 int getCount()
           
protected
<T> T
invoke(ClientRequest req)
           
 String toString()
           
 boolean trySetCount(int count)
           
 
Methods inherited from class com.hazelcast.client.spi.ClientProxy
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeInterruptibly, listen, listen, onDestroy, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Constructor Detail

ClientCountDownLatchProxy

public ClientCountDownLatchProxy(String serviceName,
                                 String objectId)
Method Detail

await

public boolean await(long timeout,
                     TimeUnit unit)
              throws InterruptedException
Specified by:
await in interface ICountDownLatch
Throws:
InterruptedException

countDown

public void countDown()
Specified by:
countDown in interface ICountDownLatch

getCount

public int getCount()
Specified by:
getCount in interface ICountDownLatch

trySetCount

public boolean trySetCount(int count)
Specified by:
trySetCount in interface ICountDownLatch

invoke

protected <T> T invoke(ClientRequest req)
Overrides:
invoke in class ClientProxy

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.