org.mapdb
Class Queues.Queue<E>

java.lang.Object
  extended by org.mapdb.Queues.SimpleQueue<E>
      extended by org.mapdb.Queues.Queue<E>
Type Parameters:
E -
All Implemented Interfaces:
Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>
Enclosing class:
Queues

public static class Queues.Queue<E>
extends Queues.SimpleQueue<E>

First in first out lock-free queue


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mapdb.Queues.SimpleQueue
Queues.SimpleQueue.Node<E>, Queues.SimpleQueue.NodeSerializer<E>
 
Field Summary
protected  Atomic.Long tail
           
 
Fields inherited from class org.mapdb.Queues.SimpleQueue
engine, head, locks, nodeSerializer, serializer, TICK, useLocks
 
Constructor Summary
Queues.Queue(Engine engine, Serializer<E> serializer, long headerRecid, long nextTailRecid, boolean useLocks)
           
 
Method Summary
 boolean add(E e)
           
 
Methods inherited from class org.mapdb.Queues.SimpleQueue
addAll, clear, close, contains, containsAll, drainTo, drainTo, element, isEmpty, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

tail

protected final Atomic.Long tail
Constructor Detail

Queues.Queue

public Queues.Queue(Engine engine,
                    Serializer<E> serializer,
                    long headerRecid,
                    long nextTailRecid,
                    boolean useLocks)
Method Detail

add

public boolean add(E e)


Copyright © 2014. All Rights Reserved.