com.hazelcast.util
Class SimpleBlockingQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
com.hazelcast.util.SimpleBlockingQueue<E>
- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.concurrent.BlockingQueue<E>, java.util.Queue<E>
public class SimpleBlockingQueue<E>
- extends java.util.AbstractQueue<E>
- implements java.util.concurrent.BlockingQueue<E>
Methods inherited from class java.util.AbstractQueue |
addAll, element, remove |
Methods inherited from class java.util.AbstractCollection |
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.concurrent.BlockingQueue |
contains |
Methods inherited from interface java.util.Queue |
element, remove |
Methods inherited from interface java.util.Collection |
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
SimpleBlockingQueue
public SimpleBlockingQueue()
SimpleBlockingQueue
public SimpleBlockingQueue(boolean priorityAware)
offer
public boolean offer(E e)
- Specified by:
offer
in interface java.util.concurrent.BlockingQueue<E>
- Specified by:
offer
in interface java.util.Queue<E>
put
public void put(E e)
- Specified by:
put
in interface java.util.concurrent.BlockingQueue<E>
remove
public boolean remove(java.lang.Object obj)
- Specified by:
remove
in interface java.util.Collection<E>
- Specified by:
remove
in interface java.util.concurrent.BlockingQueue<E>
- Overrides:
remove
in class java.util.AbstractCollection<E>
take
public E take()
throws java.lang.InterruptedException
- Specified by:
take
in interface java.util.concurrent.BlockingQueue<E>
- Throws:
java.lang.InterruptedException
poll
public E poll()
- Specified by:
poll
in interface java.util.Queue<E>
poll
public 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
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<E>
- Overrides:
clear
in class java.util.AbstractQueue<E>
add
public boolean add(E e)
- Specified by:
add
in interface java.util.Collection<E>
- Specified by:
add
in interface java.util.concurrent.BlockingQueue<E>
- Specified by:
add
in interface java.util.Queue<E>
- Overrides:
add
in class java.util.AbstractQueue<E>
offer
public 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
remainingCapacity
public int remainingCapacity()
- Specified by:
remainingCapacity
in interface java.util.concurrent.BlockingQueue<E>
drainTo
public int drainTo(java.util.Collection<? super E> c)
- Specified by:
drainTo
in interface java.util.concurrent.BlockingQueue<E>
drainTo
public int drainTo(java.util.Collection<? super E> c,
int maxElements)
- Specified by:
drainTo
in interface java.util.concurrent.BlockingQueue<E>
peek
public E peek()
- Specified by:
peek
in interface java.util.Queue<E>
iterator
public java.util.Iterator<E> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<E>
- Specified by:
iterator
in interface java.util.Collection<E>
- Specified by:
iterator
in class java.util.AbstractCollection<E>
size
public int size()
- Specified by:
size
in interface java.util.Collection<E>
- Specified by:
size
in class java.util.AbstractCollection<E>
Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.