db4o 8.0

com.db4o.io
Class ConstantGrowthStrategy

java.lang.Object
  extended by com.db4o.io.ConstantGrowthStrategy
All Implemented Interfaces:
GrowthStrategy

public class ConstantGrowthStrategy
extends java.lang.Object
implements GrowthStrategy

Strategy for file/byte array growth by a constant factor


Constructor Summary
ConstantGrowthStrategy(int growth)
           
 
Method Summary
 long newSize(long curSize, long requiredSize)
          returns the incremented size after the growth strategy has been applied
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantGrowthStrategy

public ConstantGrowthStrategy(int growth)
Parameters:
growth - The constant growth size
Method Detail

newSize

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

Specified by:
newSize in interface GrowthStrategy
Parameters:
curSize - the original size
Returns:
the new size

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.