public class BatchLog extends Object implements Delayed
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchLog.BatchKey |
static class |
BatchLog.BatchManager |
| Constructor and Description |
|---|
BatchLog(BatchLog.BatchKey batchKey,
ProducerConfig producerConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttempt(Attempt attempt) |
int |
compareTo(Delayed o) |
void |
fireCallbacks() |
boolean |
fullAndSendBatchRequest() |
long |
getDelay(TimeUnit unit) |
void |
handleNextTry() |
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 void handleNextTry()
public int compareTo(@Nonnull Delayed o)
compareTo in interface Comparable<Delayed>Copyright © 2025. All rights reserved.