Package io.datarouter.client.hbase.pool
Class HBaseTableExecutorService
java.lang.Object
io.datarouter.client.hbase.pool.HBaseTableExecutorService
public class HBaseTableExecutorService
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description HBaseTableExecutorService(int minThreads, int maxThreads) -
Method Summary
Modifier and Type Method Description java.util.concurrent.ThreadPoolExecutorgetExec()booleanisDyingOrDead(java.lang.String tableNameForLog)booleanisExpired()booleanisTaskQueueEmpty()voidmarkLastCheckinMs()voidpurge()voidterminateAndBlockUntilFinished()booleanwaitForActiveThreadsToSettle(java.lang.String tableNameForLog)
-
Constructor Details
-
HBaseTableExecutorService
public HBaseTableExecutorService(int minThreads, int maxThreads)
-
-
Method Details
-
markLastCheckinMs
public void markLastCheckinMs() -
isExpired
public boolean isExpired() -
purge
public void purge() -
isTaskQueueEmpty
public boolean isTaskQueueEmpty() -
isDyingOrDead
public boolean isDyingOrDead(java.lang.String tableNameForLog) -
waitForActiveThreadsToSettle
public boolean waitForActiveThreadsToSettle(java.lang.String tableNameForLog) -
terminateAndBlockUntilFinished
public void terminateAndBlockUntilFinished() -
getExec
public java.util.concurrent.ThreadPoolExecutor getExec()
-