public class ExchangeCountDownLatch<T> extends CountDownLatch
Constructor and Description |
---|
ExchangeCountDownLatch() |
ExchangeCountDownLatch(int count) |
Modifier and Type | Method and Description |
---|---|
void |
countDown(T obj) |
void |
exchange(T obj) |
T |
get() |
T |
waitForResult() |
T |
waitForResult(long timeout,
TimeUnit unit) |
public ExchangeCountDownLatch()
public ExchangeCountDownLatch(int count)
public void exchange(T obj)
public void countDown(T obj)
public T get()
public T waitForResult() throws InterruptedException
InterruptedException
public T waitForResult(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © GigaSpaces.