Interface Latch
-
public interface LatchSimple distributed count down latch interface. Latch supports count down and await logic. Latch functionality is not relied on caches and has own state managementExchangeLatchManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidawait()Awaits current latch completion.voidawait(long timeout, TimeUnit timeUnit)Awaits current latch completion with specified timeout.voidcountDown()Decrements count on current latch.
-
-
-
Method Detail
-
countDown
void countDown()
Decrements count on current latch. Release all latch waiters on all nodes if count reaches zero. This is idempotent operation. Invoking this method twice or more on the same node doesn't have any effect.
-
await
void await() throws IgniteCheckedExceptionAwaits current latch completion.- Throws:
IgniteCheckedException- If await is failed.
-
await
void await(long timeout, TimeUnit timeUnit) throws IgniteCheckedExceptionAwaits current latch completion with specified timeout.- Parameters:
timeout- Timeout value.timeUnit- Timeout time unit.- Throws:
IgniteCheckedException- If await is failed.
-
-