Interface NamedDeque<E>

Type Parameters:
E - the type of values in the deque
All Superinterfaces:
AutoCloseable, Collection<E>, Deque<E>, Iterable<E>, NamedCollection, NamedQueue<E>, ObservableCollection<E>, Queue<E>, Releasable, SequencedCollection<E>
All Known Subinterfaces:
NamedBlockingDeque<E>

public interface NamedDeque<E> extends NamedQueue<E>, Deque<E>
A Deque based data-structure that manages values across one or more processes. Values are typically managed in memory.
  • Method Details

    • getService

      QueueService getService()
      Description copied from interface: NamedCollection
      Return the Service that this NamedCollection is a part of.
      Specified by:
      getService in interface NamedCollection
      Specified by:
      getService in interface NamedQueue<E>
      Returns:
      the Service
    • prepend

      long prepend(E e)
      Insert an element to head of this NamedDeque.
      Parameters:
      e - the element to insert
      Returns:
      the identifier for the inserted element, or Long.MIN_VALUE if the element could not be inserted