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
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Anevent
fired from arevision cache
forrevisions
that 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRevision
(CDORevision revision) Deprecated.void
forEachCurrentRevision
(Consumer<CDORevision> consumer) Passes eachrevision
that is current into the given consumer.void
forEachRevision
(Consumer<CDORevision> consumer) Passes eachrevision
into the given consumer.void
forEachValidRevision
(CDOBranchPoint branchPoint, boolean considerBranchBases, Consumer<CDORevision> consumer) Passes eachrevision
that is valid at the givenbranch point
(or optionally at the base ranch points) into the given consumer.Returns a list ofrevisions
that 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 ofrevisions
that are current.- Since:
- 3.0
-
forEachCurrentRevision
Passes eachrevision
that is current into the given consumer.- Since:
- 4.9
-
forEachValidRevision
void forEachValidRevision(CDOBranchPoint branchPoint, boolean considerBranchBases, Consumer<CDORevision> consumer) Passes eachrevision
that is valid at the givenbranch point
(or optionally at the base ranch points) into the given consumer.- Since:
- 4.15
-
forEachRevision
Passes eachrevision
into the given consumer.- Since:
- 4.15
-
addRevision
Deprecated.As of 4.15 useCDORevisionInterner.internRevision(CDORevision)
.Description copied from interface:CDORevisionCacheAdder
Adds the given revision to this cache.- Specified by:
addRevision
in interfaceCDORevisionCacheAdder
-
CDORevisionInterner.internRevision(CDORevision)
.