org.multiverse.transactional.collections
Interface TransactionalDeque<E>

Type Parameters:
E -
All Superinterfaces:
java.util.concurrent.BlockingDeque<E>, java.util.concurrent.BlockingQueue<E>, java.util.Collection<E>, java.util.Deque<E>, java.lang.Iterable<E>, java.util.Queue<E>, TransactionalCollection<E>, TransactionalQueue<E>
All Known Implementing Classes:
AbstractTransactionalDeque, TransactionalLinkedList

public interface TransactionalDeque<E>
extends TransactionalQueue<E>, java.util.concurrent.BlockingDeque<E>

A Transactional version of the BlockingDeque interface.

Author:
Peter Veentjer.
See Also:
TransactionalCollection, BlockingDeque, Queue, Collection

Method Summary
 void addFirst(E e)
           
 void addLast(E e)
           
 boolean offerFirst(E e)
           
 boolean offerFirst(E e, long timeout, java.util.concurrent.TimeUnit unit)
           
 boolean offerLast(E e)
           
 boolean offerLast(E e, long timeout, java.util.concurrent.TimeUnit unit)
           
 E pollFirst(long timeout, java.util.concurrent.TimeUnit unit)
           
 E pollLast(long timeout, java.util.concurrent.TimeUnit unit)
           
 void putFirst(E e)
           
 void putLast(E e)
           
 boolean removeFirstOccurrence(java.lang.Object o)
           
 boolean removeLastOccurrence(java.lang.Object o)
           
 E takeFirst()
           
 E takeLast()
           
 
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
 
Methods inherited from interface java.util.Deque
descendingIterator, getFirst, getLast, peekFirst, peekLast, pollFirst, pollLast, pop, removeFirst, removeLast
 

Method Detail

addFirst

void addFirst(E e)
Specified by:
addFirst in interface java.util.concurrent.BlockingDeque<E>
Specified by:
addFirst in interface java.util.Deque<E>

addLast

void addLast(E e)
Specified by:
addLast in interface java.util.concurrent.BlockingDeque<E>
Specified by:
addLast in interface java.util.Deque<E>

offerFirst

boolean offerFirst(E e)
Specified by:
offerFirst in interface java.util.concurrent.BlockingDeque<E>
Specified by:
offerFirst in interface java.util.Deque<E>

offerLast

boolean offerLast(E e)
Specified by:
offerLast in interface java.util.concurrent.BlockingDeque<E>
Specified by:
offerLast in interface java.util.Deque<E>

putFirst

void putFirst(E e)
              throws java.lang.InterruptedException
Specified by:
putFirst in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

putLast

void putLast(E e)
             throws java.lang.InterruptedException
Specified by:
putLast in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

offerFirst

boolean offerFirst(E e,
                   long timeout,
                   java.util.concurrent.TimeUnit unit)
                   throws java.lang.InterruptedException
Specified by:
offerFirst in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

offerLast

boolean offerLast(E e,
                  long timeout,
                  java.util.concurrent.TimeUnit unit)
                  throws java.lang.InterruptedException
Specified by:
offerLast in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

takeFirst

E takeFirst()
            throws java.lang.InterruptedException
Specified by:
takeFirst in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

takeLast

E takeLast()
           throws java.lang.InterruptedException
Specified by:
takeLast in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

pollFirst

E pollFirst(long timeout,
            java.util.concurrent.TimeUnit unit)
            throws java.lang.InterruptedException
Specified by:
pollFirst in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

pollLast

E pollLast(long timeout,
           java.util.concurrent.TimeUnit unit)
           throws java.lang.InterruptedException
Specified by:
pollLast in interface java.util.concurrent.BlockingDeque<E>
Throws:
java.lang.InterruptedException

removeFirstOccurrence

boolean removeFirstOccurrence(java.lang.Object o)
Specified by:
removeFirstOccurrence in interface java.util.concurrent.BlockingDeque<E>
Specified by:
removeFirstOccurrence in interface java.util.Deque<E>

removeLastOccurrence

boolean removeLastOccurrence(java.lang.Object o)
Specified by:
removeLastOccurrence in interface java.util.concurrent.BlockingDeque<E>
Specified by:
removeLastOccurrence in interface java.util.Deque<E>


Copyright © 2008-2010 Multiverse. All Rights Reserved.