db4o 8.0

com.db4o.io
Interface GrowthStrategy

All Known Implementing Classes:
ConstantGrowthStrategy, DoublingGrowthStrategy

public interface GrowthStrategy

Strategy for file/byte array growth.


Method Summary
 long newSize(long curSize, long requiredSize)
          returns the incremented size after the growth strategy has been applied
 

Method Detail

newSize

long newSize(long curSize,
             long requiredSize)
returns the incremented size after the growth strategy has been applied

Parameters:
curSize - the original size
Returns:
the new size, after the growth strategy has been applied, must be bigger than curSize

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.