public class BufferSizeEMA extends Object
| 构造器和说明 |
|---|
BufferSizeEMA(int maxBufferSize,
int minBufferSize,
long numberOfSamples) |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2022 The Apache Software Foundation. All rights reserved.