public class BlacklistLatch
extends java.lang.Object
| Constructor and Description |
|---|
BlacklistLatch(int count,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToBlacklistCheck(HandlerTask task)
Adds a handler task to the timeout based blackout checking.
|
void |
awaitAndBlacklistCheck()
Causes current thread to wait until each handler has called countDown.
|
void |
countDown()
Count down the number of handlers blocking event completion.
|
public BlacklistLatch(int count,
long timeout)
count - Number of handlers that must call countdowntimeout - Timeout in Milliseconds to check for blacklisting handlerspublic void countDown()
public void addToBlacklistCheck(HandlerTask task)
task - public void awaitAndBlacklistCheck()
Copyright © 2017 FuseSource, Corp.. All Rights Reserved.