Class BufferDebloater
- java.lang.Object
-
- org.apache.flink.runtime.throughput.BufferDebloater
-
public class BufferDebloater extends Object
Class for automatic calculation of the buffer size based on the current throughput and configuration.
-
-
Constructor Summary
Constructors Constructor Description BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int startingBufferSize, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLastBufferSize()
Duration
getLastEstimatedTimeToConsumeBuffers()
OptionalInt
recalculateBufferSize(long currentThroughput, int buffersInUse)
-
-
-
Constructor Detail
-
BufferDebloater
public BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
-
BufferDebloater
public BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int startingBufferSize, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
-
-
Method Detail
-
recalculateBufferSize
public OptionalInt recalculateBufferSize(long currentThroughput, int buffersInUse)
-
getLastBufferSize
public int getLastBufferSize()
-
getLastEstimatedTimeToConsumeBuffers
public Duration getLastEstimatedTimeToConsumeBuffers()
-
-