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
Caches
revisions and possibly evicts those 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 ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceAneventfired from arevision cacheforrevisionsthat are evicted because they are no longer strongly referenced when free memory runs low.Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevision(CDORevision revision) Deprecated.voidforEachCurrentRevision(Consumer<CDORevision> consumer) Passes eachrevisionthat is current into the given consumer.voidforEachRevision(Consumer<CDORevision> consumer) Passes eachrevisioninto the given consumer.voidforEachValidRevision(CDOBranchPoint branchPoint, boolean considerBranchBases, Consumer<CDORevision> consumer) Passes eachrevisionthat is valid at the givenbranch point(or optionally at the base ranch points) into the given consumer.Returns a list ofrevisionsthat are current.getObjectType(CDOID id) getRevision(CDOID id, CDOBranchPoint branchPoint) getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion) Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
NOOP
- Since:
- 3.0
-
-
Method Details
-
getObjectType
-
getRevision
- Since:
- 3.0
-
getRevisionByVersion
- Since:
- 3.0
-
getCurrentRevisions
List<CDORevision> getCurrentRevisions()Returns a list ofrevisionsthat are current.- Since:
- 3.0
-
forEachCurrentRevision
Passes eachrevisionthat is current into the given consumer.- Since:
- 4.9
-
forEachValidRevision
void forEachValidRevision(CDOBranchPoint branchPoint, boolean considerBranchBases, 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
-
forEachRevision
Passes eachrevisioninto the given consumer.- Since:
- 4.15
-
addRevision
Deprecated.As of 4.15 useCDORevisionInterner.internRevision(CDORevision).Description copied from interface:CDORevisionCacheAdderAdds the given revision to this cache.- Specified by:
addRevisionin interfaceCDORevisionCacheAdder
-
CDORevisionInterner.internRevision(CDORevision).