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 SummaryNested Classes Modifier and Type Interface Description static interfaceCDORevisionCache.AdditionEventstatic interfaceCDORevisionCache.EvictionEventAneventfired from arevision cacheforrevisionsthat are evicted because they are no longer strongly referenced when free memory runs low.
 - 
Field SummaryFields Modifier and Type Field Description static CDORevisionCacheNOOP
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddRevision(CDORevision revision)Deprecated.As of 4.15 useCDORevisionInterner.internRevision(CDORevision).voidforEachCurrentRevision(java.util.function.Consumer<CDORevision> consumer)Passes eachrevisionthat is current into the given consumer.voidforEachRevision(java.util.function.Consumer<CDORevision> consumer)Passes eachrevisioninto the given consumer.voidforEachValidRevision(CDOBranchPoint branchPoint, boolean considerBranchBases, java.util.function.Consumer<CDORevision> consumer)Passes eachrevisionthat is valid at the givenbranch point(or optionally at the base ranch points) into the given consumer.java.util.List<CDORevision>getCurrentRevisions()Returns a list ofrevisionsthat are current.org.eclipse.emf.ecore.EClassgetObjectType(CDOID id)CDORevisiongetRevision(CDOID id, CDOBranchPoint branchPoint)CDORevisiongetRevisionByVersion(CDOID id, CDOBranchVersion branchVersion)
 
- 
- 
- 
Field Detail- 
NOOPstatic final CDORevisionCache NOOP - Since:
- 3.0
 
 
- 
 - 
Method Detail- 
getObjectTypeorg.eclipse.emf.ecore.EClass getObjectType(CDOID id) 
 - 
getRevisionCDORevision getRevision(CDOID id, CDOBranchPoint branchPoint) - Since:
- 3.0
 
 - 
getRevisionByVersionCDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion) - Since:
- 3.0
 
 - 
getCurrentRevisionsjava.util.List<CDORevision> getCurrentRevisions() Returns a list ofrevisionsthat are current.- Since:
- 3.0
 
 - 
forEachCurrentRevisionvoid forEachCurrentRevision(java.util.function.Consumer<CDORevision> consumer) Passes eachrevisionthat is current into the given consumer.- Since:
- 4.9
 
 - 
forEachValidRevisionvoid forEachValidRevision(CDOBranchPoint branchPoint, boolean considerBranchBases, java.util.function.Consumer<CDORevision> consumer) Passes eachrevisionthat is valid at the givenbranch point(or optionally at the base ranch points) into the given consumer.- Since:
- 4.15
 
 - 
forEachRevisionvoid forEachRevision(java.util.function.Consumer<CDORevision> consumer) Passes eachrevisioninto the given consumer.- Since:
- 4.15
 
 - 
addRevision@Deprecated void addRevision(CDORevision revision) Deprecated.As of 4.15 useCDORevisionInterner.internRevision(CDORevision).Description copied from interface:CDORevisionCacheAdderAdds the given revision to this cache.- Specified by:
- addRevisionin interface- CDORevisionCacheAdder
 
 
- 
 
-