Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ElasticsearchPublisherThread() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getShutdown() |
void |
init(org.elasticsearch.client.transport.TransportClient transportClient,
int bulkSize,
long bulkTimeOut,
long bufferEmptySleep,
long noNodesSleep)
This adds the following configurable values to the thread.
|
void |
run() |
void |
shutdown()
Shutdown thread, stop running
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void init(org.elasticsearch.client.transport.TransportClient transportClient,
int bulkSize,
long bulkTimeOut,
long bufferEmptySleep,
long noNodesSleep)
transportClient - configured transport client objectbulkSize - maximum size of the bulk to be published at a timebulkTimeOut - time out for bulk collecting from the bufferbufferEmptySleep - thread sleep time when the event buffer is emptynoNodesSleep - thread sleep time when the Elasticsearch cluster is downpublic void shutdown()
public boolean getShutdown()
Copyright © 2018 WSO2. All rights reserved.