Class BufferDebloater


  • public class BufferDebloater
    extends Object
    Class for automatic calculation of the buffer size based on the current throughput and configuration.
    • 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()