public class MemtableCleanerThread<P extends MemtablePool> extends java.lang.Object implements Interruptible
Interruptible.SimpleTask, Interruptible.State, Interruptible.Task, Interruptible.TerminateException
Constructor and Description |
---|
MemtableCleanerThread(P pool,
MemtableCleaner cleaner) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit units)
Await termination of this object, i.e.
|
void |
interrupt() |
boolean |
isTerminated() |
int |
numPendingTasks()
Return the number of pending tasks
|
void |
shutdown()
Shutdown once any remaining work has completed (however this is defined for the implementation).
|
java.lang.Object |
shutdownNow()
Shutdown immediately, possibly interrupting ongoing work, and cancelling work that is queued.
|
void |
trigger() |
public MemtableCleanerThread(P pool, MemtableCleaner cleaner)
public void trigger()
public int numPendingTasks()
public void interrupt()
interrupt
in interface Interruptible
public boolean isTerminated()
isTerminated
in interface Shutdownable
public void shutdown()
Shutdownable
shutdown
in interface Shutdownable
public java.lang.Object shutdownNow()
Shutdownable
shutdownNow
in interface Shutdownable
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit units) throws java.lang.InterruptedException
Shutdownable
awaitTermination
in interface Shutdownable
java.lang.InterruptedException
Copyright © 2009- The Apache Software Foundation