public class BatchLog extends Object implements Delayed
限定符和类型 | 类和说明 |
---|---|
static class |
BatchLog.BatchKey |
static class |
BatchLog.BatchManager |
构造器和说明 |
---|
BatchLog(BatchLog.BatchKey batchKey,
ProducerConfig producerConfig) |
限定符和类型 | 方法和说明 |
---|---|
void |
addAttempt(Attempt attempt) |
int |
compareTo(Delayed o) |
void |
fireCallbacks() |
boolean |
fullAndSendBatchRequest() |
long |
getDelay(TimeUnit unit) |
String |
toString() |
boolean |
tryAdd(PutLogRequest.LogGroup logGroup,
int batchSize,
CallBack callBack) |
public BatchLog(BatchLog.BatchKey batchKey, ProducerConfig producerConfig)
public boolean tryAdd(PutLogRequest.LogGroup logGroup, int batchSize, CallBack callBack)
public boolean fullAndSendBatchRequest()
public void addAttempt(Attempt attempt)
public void fireCallbacks()
public int compareTo(@Nonnull Delayed o)
compareTo
在接口中 Comparable<Delayed>
Copyright © 2024. All rights reserved.