|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.cdo.common.revision.cache.CDORevisionCacheUtil
public final class CDORevisionCacheUtil
| Field Summary | |
|---|---|
static int |
DEFAULT_CAPACITY_CURRENT
|
static int |
DEFAULT_CAPACITY_REVISED
|
| Method Summary | |
|---|---|
static CDORevisionCache |
createDefaultCache()
Identical to calling |
static CDORevisionCache |
createDefaultCache(int capacityCurrent,
int capacityRevised)
Creates and returns a new two-level cache with the first level being an LRU cache and the second level being a memory sensitive cache. |
static CDORevisionCache |
createLRUCache(int capacityCurrent,
int capacityRevised)
Creates and returns a new fixed size cache with two separate LRU (least-recently used) eviction policies for both current revision and revised revisions. |
static CDORevisionCache |
createMEMCache()
Creates and returns a new memory sensitive cache. |
static CDORevisionCache |
createTwoLevelCache(CDORevisionCache level1,
CDORevisionCache level2)
Creates and returns a new two-level cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_CAPACITY_CURRENT
public static final int DEFAULT_CAPACITY_REVISED
| Method Detail |
|---|
public static CDORevisionCache createLRUCache(int capacityCurrent,
int capacityRevised)
public static CDORevisionCache createMEMCache()
public static CDORevisionCache createTwoLevelCache(CDORevisionCache level1,
CDORevisionCache level2)
public static CDORevisionCache createDefaultCache(int capacityCurrent,
int capacityRevised)
public static CDORevisionCache createDefaultCache()
createDefaultCache(DEFAULT_CAPACITY_CURRENT, DEFAULT_CAPACITY_REVISED)
|
Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||