Interface QueueHandler.ElementHandler<E>

Type Parameters:
E - the type of elements to handle.
Enclosing interface:
QueueHandler<E>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface QueueHandler.ElementHandler<E>
An operation applied to each element taken from the queue by the dequeuer thread(s).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(E element)
    Handle an element.
  • Method Details

    • handle

      void handle(E element) throws Exception
      Handle an element.
      Parameters:
      element - the object to handle.
      Throws:
      Exception - if any error occurs.