public class BufferDebloater extends Object
| Constructor and Description |
|---|
BufferDebloater(int gateIndex,
long targetTotalBufferSize,
int maxBufferSize,
int minBufferSize,
int bufferDebloatThresholdPercentages,
long numberOfSamples) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastBufferSize() |
java.time.Duration |
getLastEstimatedTimeToConsumeBuffers() |
OptionalInt |
recalculateBufferSize(long currentThroughput,
int buffersInUse) |
public BufferDebloater(int gateIndex,
long targetTotalBufferSize,
int maxBufferSize,
int minBufferSize,
int bufferDebloatThresholdPercentages,
long numberOfSamples)
public OptionalInt recalculateBufferSize(long currentThroughput, int buffersInUse)
public int getLastBufferSize()
public java.time.Duration getLastEstimatedTimeToConsumeBuffers()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.