public final class LogAccumulator extends Object
| 构造器和说明 |
|---|
LogAccumulator(String producerHash,
ProducerConfig producerConfig,
Map<String,com.aliyun.openservices.log.Client> clientPool,
Semaphore memoryController,
RetryQueue retryQueue,
BlockingQueue<ProducerBatch> successQueue,
BlockingQueue<ProducerBatch> failureQueue,
IOThreadPool ioThreadPool,
AtomicInteger batchCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Result> |
append(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback) |
void |
close() |
ExpiredBatches |
expiredBatches() |
boolean |
isClosed() |
List<ProducerBatch> |
remainingBatches() |
public LogAccumulator(String producerHash, ProducerConfig producerConfig, Map<String,com.aliyun.openservices.log.Client> clientPool, Semaphore memoryController, RetryQueue retryQueue, BlockingQueue<ProducerBatch> successQueue, BlockingQueue<ProducerBatch> failureQueue, IOThreadPool ioThreadPool, AtomicInteger batchCount)
public com.google.common.util.concurrent.ListenableFuture<Result> append(String project, String logStore, String topic, String source, String shardHash, List<com.aliyun.openservices.log.common.LogItem> logItems, Callback callback) throws InterruptedException, ProducerException
public ExpiredBatches expiredBatches()
public List<ProducerBatch> remainingBatches()
public boolean isClosed()
public void close()
Copyright © 2019. All rights reserved.