org.apache.accumulo.server.tabletserver
public class CompactionQueue extends AbstractQueue<Runnable> implements BlockingQueue<Runnable>
Constructor and Description |
---|
CompactionQueue() |
Modifier and Type | Method and Description |
---|---|
int |
drainTo(Collection<? super Runnable> c) |
int |
drainTo(Collection<? super Runnable> c,
int maxElements) |
Iterator<Runnable> |
iterator() |
boolean |
offer(Runnable e) |
boolean |
offer(Runnable e,
long timeout,
TimeUnit unit) |
Runnable |
peek() |
Runnable |
poll() |
Runnable |
poll(long timeout,
TimeUnit unit) |
void |
put(Runnable e) |
int |
remainingCapacity() |
int |
size() |
Runnable |
take() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, contains, remove
public boolean offer(Runnable e)
public void put(Runnable e) throws InterruptedException
put
in interface BlockingQueue<Runnable>
InterruptedException
public boolean offer(Runnable e, long timeout, TimeUnit unit) throws InterruptedException
offer
in interface BlockingQueue<Runnable>
InterruptedException
public Runnable take() throws InterruptedException
take
in interface BlockingQueue<Runnable>
InterruptedException
public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException
poll
in interface BlockingQueue<Runnable>
InterruptedException
public int remainingCapacity()
remainingCapacity
in interface BlockingQueue<Runnable>
public int drainTo(Collection<? super Runnable> c)
drainTo
in interface BlockingQueue<Runnable>
public int drainTo(Collection<? super Runnable> c, int maxElements)
drainTo
in interface BlockingQueue<Runnable>
public Iterator<Runnable> iterator()
iterator
in interface Iterable<Runnable>
iterator
in interface Collection<Runnable>
iterator
in class AbstractCollection<Runnable>
public int size()
size
in interface Collection<Runnable>
size
in class AbstractCollection<Runnable>
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.