Interface InsertBehavior<E>

Type Parameters:
E - the type of the element which should be inserted into the queue.
All Known Implementing Classes:
BlockOnFailedInsertBehavior, BypassQueueBehavior, CountOnFailedInsertBehavior, DoNotInsertBehavior, TerminateOnFailedInsertBehavior

public interface InsertBehavior<E>
Since:
1.13
Author:
Christian Wulf (chw)
  • Method Summary

    Modifier and Type Method Description
    boolean insert​(E element)  
  • Method Details

    • insert

      boolean insert​(E element)
      Parameters:
      element - element to be inserted
      Returns:
      true if the element after this element can be inserted, otherwise false.
      Since:
      1.13