org.openrdf.sail.rdbms.managers.helpers
Class BatchBlockingQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<Batch>
org.openrdf.sail.rdbms.managers.helpers.BatchBlockingQueue
- All Implemented Interfaces:
- Iterable<Batch>, Collection<Batch>, BlockingQueue<Batch>, Queue<Batch>
public class BatchBlockingQueue
- extends AbstractQueue<Batch>
- implements BlockingQueue<Batch>
- Author:
- James Leigh
BatchBlockingQueue
public BatchBlockingQueue(int capacity)
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<Batch>- Specified by:
remove in interface BlockingQueue<Batch>- Overrides:
remove in class AbstractCollection<Batch>
iterator
public Iterator<Batch> iterator()
- Specified by:
iterator in interface Iterable<Batch>- Specified by:
iterator in interface Collection<Batch>- Specified by:
iterator in class AbstractCollection<Batch>
size
public int size()
- Specified by:
size in interface Collection<Batch>- Specified by:
size in class AbstractCollection<Batch>
offer
public boolean offer(Batch e)
- Specified by:
offer in interface BlockingQueue<Batch>- Specified by:
offer in interface Queue<Batch>
peek
public Batch peek()
- Specified by:
peek in interface Queue<Batch>
poll
public Batch poll()
- Specified by:
poll in interface Queue<Batch>
drainTo
public int drainTo(Collection<? super Batch> c)
- Specified by:
drainTo in interface BlockingQueue<Batch>
drainTo
public int drainTo(Collection<? super Batch> c,
int n)
- Specified by:
drainTo in interface BlockingQueue<Batch>
offer
public boolean offer(Batch e,
long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
offer in interface BlockingQueue<Batch>
- Throws:
InterruptedException
poll
public Batch poll(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
poll in interface BlockingQueue<Batch>
- Throws:
InterruptedException
put
public void put(Batch e)
throws InterruptedException
- Specified by:
put in interface BlockingQueue<Batch>
- Throws:
InterruptedException
remainingCapacity
public int remainingCapacity()
- Specified by:
remainingCapacity in interface BlockingQueue<Batch>
take
public Batch take()
throws InterruptedException
- Specified by:
take in interface BlockingQueue<Batch>
- Throws:
InterruptedException
Copyright © 2001-2012 Aduna. All Rights Reserved.