Package org.eclipse.emf.cdo.util
Klasse CDOBalancedTree
java.lang.Object
org.eclipse.emf.cdo.util.CDOBalancedTree
A utility class that attaches
objects to a folder rooted, balanced tree such that configurable
capacities for resources per folder and objects per resource are never exceeded. This class is useful if a large number of objects
does not form a tree naturally but long lists would hinder fast lazy loading.- Seit:
- 4.1
- Autor:
- Eike Stepper
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final int -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCDOBalancedTree(CDOResourceFolder root, int nodeCapacity) CDOBalancedTree(CDOResourceFolder root, int folderCapacity, int resourceCapacity) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfinal intfinal intfinal longfinal intfinal CDOResourceFoldergetRoot()final voidsetLockAttempts(int lockAttempts) final voidsetLockTimeout(long lockTimeout)
-
Felddetails
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY- Siehe auch:
-
DEFAULT_LOCK_TIMEOUT
public static final int DEFAULT_LOCK_TIMEOUT- Siehe auch:
-
-
Konstruktordetails
-
CDOBalancedTree
-
CDOBalancedTree
-
CDOBalancedTree
-
-
Methodendetails
-
getRoot
-
getFolderCapacity
public final int getFolderCapacity() -
getResourceCapacity
public final int getResourceCapacity() -
getLockAttempts
public final int getLockAttempts() -
setLockAttempts
public final void setLockAttempts(int lockAttempts) -
getLockTimeout
public final long getLockTimeout() -
setLockTimeout
public final void setLockTimeout(long lockTimeout) -
addObject
-