Interface NamedBlockingDeque<E>
- Type Parameters:
E- the type of values in the queue
- All Superinterfaces:
AutoCloseable, BlockingDeque<E>, BlockingQueue<E>, Collection<E>, Deque<E>, Iterable<E>, NamedBlockingQueue<E>, NamedCollection, NamedDeque<E>, NamedQueue<E>, ObservableCollection<E>, Queue<E>, Releasable, SequencedCollection<E>
public interface NamedBlockingDeque<E>
extends NamedBlockingQueue<E>, NamedDeque<E>, BlockingDeque<E>
A
BlockingDeque based data-structure that manages values across one or
more processes. Values are typically managed in memory.-
Nested Class Summary
Nested classes/interfaces inherited from interface NamedCollection
NamedCollection.Option -
Field Summary
Fields inherited from interface NamedQueue
EXPIRY_DEFAULT, EXPIRY_NEVER -
Method Summary
Modifier and TypeMethodDescriptionlongInserts the specified element at the front of thisNamedBlockingDeque, waiting up to the specified wait time if necessary for space to become available.longprependFirst(E e) Inserts the specified element at the front of thisNamedBlockingDeque, waiting if necessary for space to become available.Methods inherited from interface BlockingDeque
add, addFirst, addLast, contains, element, iterator, offer, offer, offerFirst, offerFirst, offerLast, offerLast, peek, poll, poll, pollFirst, pollLast, push, put, putFirst, putLast, remove, remove, removeFirstOccurrence, removeLastOccurrence, size, take, takeFirst, takeLastMethods inherited from interface BlockingQueue
drainTo, drainTo, remainingCapacityMethods inherited from interface Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface Deque
add, addAll, contains, descendingIterator, getFirst, getLast, offer, peekFirst, peekLast, pollFirst, pollLast, pop, remove, removeFirst, removeLast, reversedMethods inherited from interface NamedBlockingQueue
append, appendLastMethods inherited from interface NamedCollection
destroy, getName, isDestroyedMethods inherited from interface NamedDeque
addFirst, addLast, getService, offerFirst, offerLast, prepend, prepend, pushMethods inherited from interface NamedQueue
add, append, append, getQueueNameHash, getQueueStatistics, isActive, isReady, offerMethods inherited from interface ObservableCollection
addListener, addListener, removeListener, removeListenerMethods inherited from interface Releasable
close, isReleased, release
-
Method Details
-
prepend
Inserts the specified element at the front of thisNamedBlockingDeque, waiting up to the specified wait time if necessary for space to become available.- Parameters:
e- the element to inserttimeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameter- Returns:
- the identifier for the inserted element, or
-1Lif the element could not be inserted - Throws:
InterruptedException- if interrupted while waiting
-
prependFirst
Inserts the specified element at the front of thisNamedBlockingDeque, waiting if necessary for space to become available.- Parameters:
e- the element to insert- Returns:
- the identifier for the inserted element, or
-1Lif the element could not be inserted - Throws:
InterruptedException- if interrupted while waiting
-