public class LogDispatcher extends Object
限定符和类型 | 字段和说明 |
---|---|
static String |
TLS_THREAD_POOL_FORMAT |
构造器和说明 |
---|
LogDispatcher(ProducerConfig producerConfig,
String producerName,
BlockingQueue<BatchLog> successQueue,
BlockingQueue<BatchLog> failureQueue,
Semaphore memoryLock,
AtomicInteger batchCount,
RetryManager retryManager) |
限定符和类型 | 方法和说明 |
---|---|
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 LogDispatcher(ProducerConfig producerConfig, String producerName, BlockingQueue<BatchLog> successQueue, BlockingQueue<BatchLog> failureQueue, Semaphore memoryLock, AtomicInteger batchCount, RetryManager retryManager) throws LogException
LogException
public TLSLogClient getClient()
public ConcurrentHashMap<BatchLog.BatchKey,BatchLog.BatchManager> getBatches()
public void start()
public ExecutorService getExecutorService()
public void close()
public void closeNow()
public 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
Copyright © 2024. All rights reserved.