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) |
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(Delayed o)
compareTo
in interface Comparable<Delayed>
Copyright © 2022. All rights reserved.