Interface CDORevisionCache
-
- All Superinterfaces:
CDORevisionCacheAdder,org.eclipse.net4j.util.event.INotifier
- All Known Subinterfaces:
InternalCDORevisionCache
public interface CDORevisionCache extends CDORevisionCacheAdder, org.eclipse.net4j.util.event.INotifier
Cachesrevisionsand possiblyevictsthose that are no longer strongly referenced when free memory runs low.- Since:
- 4.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCDORevisionCache.EvictionEventAneventfired from arevision cacheforrevisionsthat are evicted because they are no longer strongly referenced when free memory runs low.
-
Field Summary
Fields Modifier and Type Field Description static CDORevisionCacheNOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidforEachCurrentRevision(java.util.function.Consumer<CDORevision> consumer)Passes eachrevisionthat is current into the given consumer.java.util.List<CDORevision>getCurrentRevisions()Returns a list ofrevisionsthat are current.EClassgetObjectType(CDOID id)CDORevisiongetRevision(CDOID id, CDOBranchPoint branchPoint)CDORevisiongetRevisionByVersion(CDOID id, CDOBranchVersion branchVersion)-
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionCacheAdder
addRevision
-
-
-
-
Field Detail
-
NOOP
static final CDORevisionCache NOOP
- Since:
- 3.0
-
-
Method Detail
-
getRevision
CDORevision getRevision(CDOID id, CDOBranchPoint branchPoint)
- Since:
- 3.0
-
getRevisionByVersion
CDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion)
- Since:
- 3.0
-
getCurrentRevisions
java.util.List<CDORevision> getCurrentRevisions()
Returns a list ofrevisionsthat are current.- Since:
- 3.0
-
forEachCurrentRevision
void forEachCurrentRevision(java.util.function.Consumer<CDORevision> consumer)
Passes eachrevisionthat is current into the given consumer.- Since:
- 4.9
-
-