Interface DelayedExecutor.Worker<E>

  • Enclosing class:
    DelayedExecutor

    public static interface DelayedExecutor.Worker<E>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean doWork​(E element)
      The method is executed by DelayExecutor once element's timeout expires.
    • Method Detail

      • doWork

        boolean doWork​(E element)
        The method is executed by DelayExecutor once element's timeout expires.
        Parameters:
        element - element to operate upon.
        Returns:
        true, if the work is done and element has to be removed from the delay queue, or false if the element should be re-registered on the delay queue again