@Deprecated public class CommonsBufferSizePredictorAdapter extends Object implements BufferSizePredictor
| Constructor and Description |
|---|
CommonsBufferSizePredictorAdapter(BufferSizePredictor delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextSize(Object obj)
Deprecated.
Provide the next buffer size taking in account
the object to store in the buffer.
|
void |
recordSize(int previousSize)
Deprecated.
Record the size of the of data in the last buffer used.
|
public CommonsBufferSizePredictorAdapter(BufferSizePredictor delegate)
public int nextSize(Object obj)
BufferSizePredictornextSize in interface BufferSizePredictorobj - instance that will be stored in the bufferpublic void recordSize(int previousSize)
BufferSizePredictorrecordSize in interface BufferSizePredictorpreviousSize - int representing the size of the last
object buffered.Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.