public class BufferSizeEMA extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Calculating the buffer size over total possible buffers size and number of buffers in use.
public BufferSizeEMA(int maxBufferSize, int minBufferSize, long numberOfSamples)
public int calculateBufferSize(long totalBufferSizeInBytes, int totalBuffers)
totalBufferSizeInBytes- Total buffers size.
totalBuffers- Total number of buffers in use.
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.