org.jcurl.demo.tactics
Class HFBlockingQueue<E>

Package class diagram package HFBlockingQueue
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.LinkedBlockingQueue<E>
              extended by org.jcurl.demo.tactics.HFBlockingQueue<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>

public class HFBlockingQueue<E>
extends LinkedBlockingQueue<E>

Version:
$Id$
Author:
M. Rohrmoser
See Also:
Serialized Form

Constructor Summary
HFBlockingQueue()
           
 
Method Summary
 boolean add(E o)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 int drainTo(Collection<? super E> c)
           
 int drainTo(Collection<? super E> c, int maxElements)
           
 E element()
           
 Iterator<E> iterator()
           
 boolean offer(E o)
           
 boolean offer(E o, long timeout, TimeUnit unit)
           
 E peek()
           
 E poll()
           
 E poll(long timeout, TimeUnit unit)
           
 void put(E o)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 E take()
           
 
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, remainingCapacity, size, toArray, toArray, toString
 
Methods inherited from class java.util.AbstractQueue
remove
 
Methods inherited from class java.util.AbstractCollection
isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Queue
remove
 
Methods inherited from interface java.util.Collection
equals, hashCode, isEmpty
 

Constructor Detail

HFBlockingQueue

public HFBlockingQueue()
Method Detail

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Specified by:
add in interface BlockingQueue<E>
Overrides:
add in class AbstractQueue<E>

addAll

public boolean addAll(Collection<? extends E> c)
Specified by:
addAll in interface Collection<E>
Overrides:
addAll in class AbstractQueue<E>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>
Overrides:
contains in class AbstractCollection<E>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<E>
Overrides:
containsAll in class AbstractCollection<E>

drainTo

public int drainTo(Collection<? super E> c)
Specified by:
drainTo in interface BlockingQueue<E>
Overrides:
drainTo in class LinkedBlockingQueue<E>

drainTo

public int drainTo(Collection<? super E> c,
                   int maxElements)
Specified by:
drainTo in interface BlockingQueue<E>
Overrides:
drainTo in class LinkedBlockingQueue<E>

element

public E element()
Specified by:
element in interface Queue<E>
Overrides:
element in class AbstractQueue<E>

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Overrides:
iterator in class LinkedBlockingQueue<E>

offer

public boolean offer(E o)
Specified by:
offer in interface BlockingQueue<E>
Specified by:
offer in interface Queue<E>
Overrides:
offer in class LinkedBlockingQueue<E>

offer

public boolean offer(E o,
                     long timeout,
                     TimeUnit unit)
              throws InterruptedException
Specified by:
offer in interface BlockingQueue<E>
Overrides:
offer in class LinkedBlockingQueue<E>
Throws:
InterruptedException

peek

public E peek()
Specified by:
peek in interface Queue<E>
Overrides:
peek in class LinkedBlockingQueue<E>

poll

public E poll()
Specified by:
poll in interface Queue<E>
Overrides:
poll in class LinkedBlockingQueue<E>

poll

public E poll(long timeout,
              TimeUnit unit)
       throws InterruptedException
Specified by:
poll in interface BlockingQueue<E>
Overrides:
poll in class LinkedBlockingQueue<E>
Throws:
InterruptedException

put

public void put(E o)
         throws InterruptedException
Specified by:
put in interface BlockingQueue<E>
Overrides:
put in class LinkedBlockingQueue<E>
Throws:
InterruptedException

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Overrides:
remove in class LinkedBlockingQueue<E>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<E>
Overrides:
removeAll in class AbstractCollection<E>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<E>
Overrides:
retainAll in class AbstractCollection<E>

take

public E take()
       throws InterruptedException
Specified by:
take in interface BlockingQueue<E>
Overrides:
take in class LinkedBlockingQueue<E>
Throws:
InterruptedException


Copyright © 2005-2009 JCurl.mro.name. All Rights Reserved.