org.apache.accumulo.server.tabletserver
Class CompactionQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<java.lang.Runnable>
org.apache.accumulo.server.tabletserver.CompactionQueue
- All Implemented Interfaces:
- java.lang.Iterable<java.lang.Runnable>, java.util.Collection<java.lang.Runnable>, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.Queue<java.lang.Runnable>
public class CompactionQueue
- extends java.util.AbstractQueue<java.lang.Runnable>
- implements java.util.concurrent.BlockingQueue<java.lang.Runnable>
Method Summary |
int |
drainTo(java.util.Collection<? super java.lang.Runnable> c)
|
int |
drainTo(java.util.Collection<? super java.lang.Runnable> c,
int maxElements)
|
java.util.Iterator<java.lang.Runnable> |
iterator()
|
boolean |
offer(java.lang.Runnable e)
|
boolean |
offer(java.lang.Runnable e,
long timeout,
java.util.concurrent.TimeUnit unit)
|
java.lang.Runnable |
peek()
|
java.lang.Runnable |
poll()
|
java.lang.Runnable |
poll(long timeout,
java.util.concurrent.TimeUnit unit)
|
void |
put(java.lang.Runnable e)
|
int |
remainingCapacity()
|
int |
size()
|
java.lang.Runnable |
take()
|
Methods inherited from class java.util.AbstractQueue |
add, addAll, clear, element, remove |
Methods inherited from class java.util.AbstractCollection |
contains, containsAll, isEmpty, remove, 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 |
add, contains, remove |
Methods inherited from interface java.util.Queue |
element, remove |
Methods inherited from interface java.util.Collection |
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
CompactionQueue
public CompactionQueue()
poll
public java.lang.Runnable poll()
- Specified by:
poll
in interface java.util.Queue<java.lang.Runnable>
peek
public java.lang.Runnable peek()
- Specified by:
peek
in interface java.util.Queue<java.lang.Runnable>
offer
public boolean offer(java.lang.Runnable e)
- Specified by:
offer
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
- Specified by:
offer
in interface java.util.Queue<java.lang.Runnable>
put
public void put(java.lang.Runnable e)
throws java.lang.InterruptedException
- Specified by:
put
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
- Throws:
java.lang.InterruptedException
offer
public boolean offer(java.lang.Runnable e,
long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
offer
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
- Throws:
java.lang.InterruptedException
take
public java.lang.Runnable take()
throws java.lang.InterruptedException
- Specified by:
take
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
- Throws:
java.lang.InterruptedException
poll
public java.lang.Runnable poll(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
poll
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
- Throws:
java.lang.InterruptedException
remainingCapacity
public int remainingCapacity()
- Specified by:
remainingCapacity
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
drainTo
public int drainTo(java.util.Collection<? super java.lang.Runnable> c)
- Specified by:
drainTo
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
drainTo
public int drainTo(java.util.Collection<? super java.lang.Runnable> c,
int maxElements)
- Specified by:
drainTo
in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
iterator
public java.util.Iterator<java.lang.Runnable> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<java.lang.Runnable>
- Specified by:
iterator
in interface java.util.Collection<java.lang.Runnable>
- Specified by:
iterator
in class java.util.AbstractCollection<java.lang.Runnable>
size
public int size()
- Specified by:
size
in interface java.util.Collection<java.lang.Runnable>
- Specified by:
size
in class java.util.AbstractCollection<java.lang.Runnable>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.