org.multiverse.transactional.collections
Interface TransactionalQueue<E>
- Type Parameters:
E -
- All Superinterfaces:
- BlockingQueue<E>, Collection<E>, Iterable<E>, Queue<E>, TransactionalCollection<E>
- All Known Subinterfaces:
- TransactionalDeque<E>
- All Known Implementing Classes:
- AbstractTransactionalDeque, TransactionalLinkedList
public interface TransactionalQueue<E>
- extends BlockingQueue<E>, TransactionalCollection<E>
A transactional BlockingQueue interface.
- Author:
- Peter Veentjer.
- See Also:
TransactionalCollection,
Collection,
BlockingQueue,
Queue
| 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 Queue<E>
peek
E peek()
- Specified by:
peek in interface Queue<E>
offer
boolean offer(E e)
- Specified by:
offer in interface BlockingQueue<E>- Specified by:
offer in interface Queue<E>
put
void put(E e)
throws InterruptedException
- Specified by:
put in interface BlockingQueue<E>
- Throws:
InterruptedException
offer
boolean offer(E e,
long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
offer in interface BlockingQueue<E>
- Throws:
InterruptedException
take
E take()
throws InterruptedException
- Specified by:
take in interface BlockingQueue<E>
- Throws:
InterruptedException
poll
E poll(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
poll in interface BlockingQueue<E>
- Throws:
InterruptedException
remainingCapacity
int remainingCapacity()
- Specified by:
remainingCapacity in interface BlockingQueue<E>
drainTo
int drainTo(Collection<? super E> c)
- Specified by:
drainTo in interface BlockingQueue<E>
drainTo
int drainTo(Collection<? super E> c,
int maxElements)
- Specified by:
drainTo in interface BlockingQueue<E>
remove
E remove()
- Specified by:
remove in interface Queue<E>
poll
E poll()
- Specified by:
poll in interface Queue<E>
Copyright © 2008-2010 Multiverse. All Rights Reserved.