Package com.tangosol.net
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>
A
Deque 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 com.tangosol.net.NamedCollection
NamedCollection.Option -
Method Summary
Modifier and TypeMethodDescriptionReturn the Service that this NamedCollection is a part of.longInsert an element to head of thisNamedDeque.Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface java.util.Deque
add, addAll, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, reversed, sizeMethods inherited from interface com.tangosol.net.NamedCollection
destroy, getName, isDestroyedMethods inherited from interface com.tangosol.net.NamedQueue
append, getQueueNameHash, getQueueStatistics, isActive, isReadyMethods inherited from interface com.tangosol.util.ObservableCollection
addListener, addListener, removeListener, removeListenerMethods inherited from interface com.tangosol.net.Releasable
close, isReleased, release
-
Method Details
-
getService
QueueService getService()Description copied from interface:NamedCollectionReturn the Service that this NamedCollection is a part of.- Specified by:
getServicein interfaceNamedCollection- Specified by:
getServicein interfaceNamedQueue<E>- Returns:
- the Service
-
prepend
Insert an element to head of thisNamedDeque.- Parameters:
e- the element to insert- Returns:
- the identifier for the inserted element, or
Long.MIN_VALUEif the element could not be inserted
-