org.multiverse.transactional.collections
Interface TransactionalDeque<E>
- Type Parameters:
E -
- All Superinterfaces:
- BlockingDeque<E>, BlockingQueue<E>, Collection<E>, Deque<E>, Iterable<E>, Queue<E>, TransactionalCollection<E>, TransactionalQueue<E>
- All Known Implementing Classes:
- AbstractTransactionalDeque, TransactionalLinkedList
public interface TransactionalDeque<E>
- extends TransactionalQueue<E>, BlockingDeque<E>
A Transactional version of the BlockingDeque interface.
- Author:
- Peter Veentjer.
- See Also:
TransactionalCollection,
BlockingDeque,
Queue,
Collection
| Methods inherited from interface org.multiverse.transactional.collections.TransactionalQueue |
drainTo, drainTo, element, offer, offer, peek, poll, poll, put, remainingCapacity, remove, take |
| Methods inherited from interface org.multiverse.transactional.collections.TransactionalCollection |
add, addAll, atomicSize, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from interface java.util.concurrent.BlockingDeque |
add, contains, element, iterator, offer, offer, peek, poll, poll, push, put, remove, remove, size, take |
addFirst
void addFirst(E e)
- Specified by:
addFirst in interface BlockingDeque<E>- Specified by:
addFirst in interface Deque<E>
addLast
void addLast(E e)
- Specified by:
addLast in interface BlockingDeque<E>- Specified by:
addLast in interface Deque<E>
offerFirst
boolean offerFirst(E e)
- Specified by:
offerFirst in interface BlockingDeque<E>- Specified by:
offerFirst in interface Deque<E>
offerLast
boolean offerLast(E e)
- Specified by:
offerLast in interface BlockingDeque<E>- Specified by:
offerLast in interface Deque<E>
putFirst
void putFirst(E e)
throws InterruptedException
- Specified by:
putFirst in interface BlockingDeque<E>
- Throws:
InterruptedException
putLast
void putLast(E e)
throws InterruptedException
- Specified by:
putLast in interface BlockingDeque<E>
- Throws:
InterruptedException
offerFirst
boolean offerFirst(E e,
long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
offerFirst in interface BlockingDeque<E>
- Throws:
InterruptedException
offerLast
boolean offerLast(E e,
long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
offerLast in interface BlockingDeque<E>
- Throws:
InterruptedException
takeFirst
E takeFirst()
throws InterruptedException
- Specified by:
takeFirst in interface BlockingDeque<E>
- Throws:
InterruptedException
takeLast
E takeLast()
throws InterruptedException
- Specified by:
takeLast in interface BlockingDeque<E>
- Throws:
InterruptedException
pollFirst
E pollFirst(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
pollFirst in interface BlockingDeque<E>
- Throws:
InterruptedException
pollLast
E pollLast(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
pollLast in interface BlockingDeque<E>
- Throws:
InterruptedException
removeFirstOccurrence
boolean removeFirstOccurrence(Object o)
- Specified by:
removeFirstOccurrence in interface BlockingDeque<E>- Specified by:
removeFirstOccurrence in interface Deque<E>
removeLastOccurrence
boolean removeLastOccurrence(Object o)
- Specified by:
removeLastOccurrence in interface BlockingDeque<E>- Specified by:
removeLastOccurrence in interface Deque<E>
Copyright © 2008-2010 Multiverse. All Rights Reserved.