org.multiverse.transactional.collections
Interface TransactionalQueue<E>
- Type Parameters:
E -
- All Superinterfaces:
- java.util.concurrent.BlockingQueue<E>, java.util.Collection<E>, java.lang.Iterable<E>, java.util.Queue<E>, TransactionalCollection<E>
- All Known Subinterfaces:
- TransactionalDeque<E>
- All Known Implementing Classes:
- AbstractTransactionalDeque, TransactionalLinkedList
public interface TransactionalQueue<E>
- extends java.util.concurrent.BlockingQueue<E>, TransactionalCollection<E>
A transactional BlockingQueue interface.
- Author:
- Peter Veentjer.
- See Also:
TransactionalCollection,
Collection,
BlockingQueue,
Queue
| Methods inherited from interface java.util.concurrent.BlockingQueue |
add, contains, remove |
| Methods inherited from interface java.util.Collection |
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
| 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 |
element
E element()
- Specified by:
element in interface java.util.Queue<E>
peek
E peek()
- Specified by:
peek in interface java.util.Queue<E>
offer
boolean offer(E e)
- Specified by:
offer in interface java.util.concurrent.BlockingQueue<E>- Specified by:
offer in interface java.util.Queue<E>
put
void put(E e)
throws java.lang.InterruptedException
- Specified by:
put in interface java.util.concurrent.BlockingQueue<E>
- Throws:
java.lang.InterruptedException
offer
boolean offer(E e,
long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
offer in interface java.util.concurrent.BlockingQueue<E>
- Throws:
java.lang.InterruptedException
take
E take()
throws java.lang.InterruptedException
- Specified by:
take in interface java.util.concurrent.BlockingQueue<E>
- Throws:
java.lang.InterruptedException
poll
E poll(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
poll in interface java.util.concurrent.BlockingQueue<E>
- Throws:
java.lang.InterruptedException
remainingCapacity
int remainingCapacity()
- Specified by:
remainingCapacity in interface java.util.concurrent.BlockingQueue<E>
drainTo
int drainTo(java.util.Collection<? super E> c)
- Specified by:
drainTo in interface java.util.concurrent.BlockingQueue<E>
drainTo
int drainTo(java.util.Collection<? super E> c,
int maxElements)
- Specified by:
drainTo in interface java.util.concurrent.BlockingQueue<E>
remove
E remove()
- Specified by:
remove in interface java.util.Queue<E>
poll
E poll()
- Specified by:
poll in interface java.util.Queue<E>
Copyright © 2008-2010 Multiverse. All Rights Reserved.