Class DenylistLatch


  • public class DenylistLatch
    extends Object
    A latch that checks handlers for denying on an interval.
    • Constructor Detail

      • DenylistLatch

        public DenylistLatch​(int count,
                             long timeout)
        Parameters:
        count - Number of handlers that must call countdown
        timeout - Timeout in Milliseconds to check for denying handlers
    • 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.