org.infinispan.marshall
Interface BufferSizePredictor

All Known Implementing Classes:
AdaptiveBufferSizePredictor

public interface BufferSizePredictor

Buffer size predictor

Since:
5.0
Author:
Galder ZamarreƱo

Method Summary
 int nextSize(Object obj)
          Provide the next buffer size taking in account the object to store in the buffer.
 void recordSize(int previousSize)
          Record the size of the of data in the last buffer used.
 

Method Detail

nextSize

int nextSize(Object obj)
Provide the next buffer size taking in account the object to store in the buffer.

Parameters:
obj - instance that will be stored in the buffer
Returns:
int representing the next predicted buffer size

recordSize

void recordSize(int previousSize)
Record the size of the of data in the last buffer used.

Parameters:
previousSize - int representing the size of the last object buffered.

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.