public interface BufferSizePredictor
|Modifier and Type||Method and Description|
Provide the next buffer size taking in account the object to store in the buffer.
Record the size of the of data in the last buffer used.
int nextSize(Object obj)
obj- instance that will be stored in the buffer
void recordSize(int previousSize)
previousSize- int representing the size of the last object buffered.
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.