public class BufferSizeEMA extends Object
| Constructor and Description |
|---|
BufferSizeEMA(int maxBufferSize,
int minBufferSize,
long numberOfSamples) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateBufferSize(long totalBufferSizeInBytes,
int totalBuffers)
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–2025 The Apache Software Foundation. All rights reserved.