public class LogDispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TLS_THREAD_POOL_FORMAT |
| Constructor and Description |
|---|
LogDispatcher(ProducerConfig producerConfig,
String producerName,
BlockingQueue<BatchLog> successQueue,
BlockingQueue<BatchLog> failureQueue,
Semaphore memoryLock,
AtomicInteger batchCount,
RetryManager retryManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String hashKey,
String topicId,
String source,
String filename,
PutLogRequest.LogGroup logGroup,
CallBack callBack) |
void |
close() |
void |
closeNow() |
ConcurrentHashMap<BatchLog.BatchKey,BatchLog.BatchManager> |
getBatches() |
TLSLogClient |
getClient() |
ExecutorService |
getExecutorService() |
void |
resetAccessKeyToken(String accessKey,
String secretKey,
String securityToken) |
void |
start() |
public static final String TLS_THREAD_POOL_FORMAT
public LogDispatcher(ProducerConfig producerConfig, String producerName, BlockingQueue<BatchLog> successQueue, BlockingQueue<BatchLog> failureQueue, Semaphore memoryLock, AtomicInteger batchCount, RetryManager retryManager) throws LogException
LogExceptionpublic TLSLogClient getClient()
public ConcurrentHashMap<BatchLog.BatchKey,BatchLog.BatchManager> getBatches()
public void start()
public ExecutorService getExecutorService()
public void close()
throws InterruptedException,
LogException
InterruptedExceptionLogExceptionpublic void closeNow()
throws InterruptedException,
LogException
InterruptedExceptionLogExceptionpublic void resetAccessKeyToken(String accessKey, String secretKey, String securityToken)
public void addBatch(String hashKey, String topicId, String source, String filename, PutLogRequest.LogGroup logGroup, CallBack callBack) throws InterruptedException, LogException
InterruptedExceptionLogExceptionCopyright © 2023. All rights reserved.