public class DenylistLatch extends Object
| Constructor and Description |
|---|
DenylistLatch(int count,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToDenylistCheck(HandlerTask task)
Adds a handler task to the timeout based deny list checking.
|
void |
awaitAndDenylistCheck()
Causes current thread to wait until each handler has called countDown.
|
void |
countDown()
Count down the number of handlers blocking event completion.
|
public DenylistLatch(int count,
long timeout)
count - Number of handlers that must call countdowntimeout - Timeout in Milliseconds to check for denying handlerspublic void countDown()
public void addToDenylistCheck(HandlerTask task)
task - The handler taskpublic void awaitAndDenylistCheck()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.