com.hazelcast.client
Class CountDownLatchClientProxy

java.lang.Object
  extended by com.hazelcast.client.CountDownLatchClientProxy
All Implemented Interfaces:
ICountDownLatch, Instance

public class CountDownLatchClientProxy
extends Object
implements ICountDownLatch


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hazelcast.core.Instance
Instance.InstanceType
 
Constructor Summary
CountDownLatchClientProxy(HazelcastClient hazelcastClient, String name)
           
 
Method Summary
 void await()
           
 boolean await(long timeout, TimeUnit unit)
           
 void countDown()
           
 void destroy()
           
 int getCount()
           
 Object getId()
           
 Instance.InstanceType getInstanceType()
           
 LocalCountDownLatchStats getLocalCountDownLatchStats()
           
 String getName()
           
 Member getOwner()
           
 boolean hasCount()
           
 boolean setCount(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountDownLatchClientProxy

public CountDownLatchClientProxy(HazelcastClient hazelcastClient,
                                 String name)
Method Detail

await

public void await()
           throws InstanceDestroyedException,
                  MemberLeftException,
                  InterruptedException
Specified by:
await in interface ICountDownLatch
Throws:
InstanceDestroyedException
MemberLeftException
InterruptedException

await

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

countDown

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

getCount

public int getCount()

getOwner

public Member getOwner()

hasCount

public boolean hasCount()
Specified by:
hasCount in interface ICountDownLatch

setCount

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

destroy

public void destroy()
Specified by:
destroy in interface Instance

getId

public Object getId()
Specified by:
getId in interface Instance

getInstanceType

public Instance.InstanceType getInstanceType()
Specified by:
getInstanceType in interface Instance

getName

public String getName()
Specified by:
getName in interface ICountDownLatch

getLocalCountDownLatchStats

public LocalCountDownLatchStats getLocalCountDownLatchStats()
Specified by:
getLocalCountDownLatchStats in interface ICountDownLatch


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