Class DenylistLatch
- java.lang.Object
-
- org.apache.felix.eventadmin.impl.tasks.DenylistLatch
-
public class DenylistLatch extends Object
A latch that checks handlers for denying on an interval.
-
-
Constructor Summary
Constructors Constructor Description DenylistLatch(int count, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
countDown
public void countDown()
Count down the number of handlers blocking event completion.
-
addToDenylistCheck
public void addToDenylistCheck(HandlerTask task)
Adds a handler task to the timeout based deny list checking.- Parameters:
task
- The handler task
-
awaitAndDenylistCheck
public void awaitAndDenylistCheck()
Causes current thread to wait until each handler has called countDown. Checks on timeout interval to determine if a handler needs deny listing.
-
-