public interface CountdownLatchCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
await(String name,
long timeout)
Causes the current thread to wait until the latch has counted down to zero, or an exception is thrown, or the
specified waiting time elapses.
|
void |
countDown(String name)
Decrements the count of the latch, releasing all waiting threads if the count reaches zero.
|
Object |
getCount(String name)
Returns the current count.
|
Object |
trySetCount(String name,
int count)
Sets the count to the given value if the current count is zero.
|
Object await(String name, long timeout)
name
- Name of the CountDownLatchtimeout
- The maximum time in milliseconds to waitvoid countDown(String name)
name
- Name of the CountDownLatchObject getCount(String name)
name
- Name of the CountDownLatchObject trySetCount(String name, int count)
name
- Name of the CountDownLatchcount
- The number of times countDown must be invoked before threads can pass through awaitCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.