Class InternalCDORevisionCache.InternResult
java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionCache.InternResult
- Enclosing interface:
InternalCDORevisionCache
Result of an atomic cache interning operation whose event delivery is deferred to the caller.
- Since:
- 4.29
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorsConstructorDescriptionInternResult(CDORevision revision, Runnable eventDispatcher) Creates an interning result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional deferred cache-event callback.Returns the canonical revision selected by the cache.
-
Constructor Details
-
InternResult
Creates an interning result.- Parameters:
revision- the canonical revision returned by the cacheeventDispatcher- the optional callback that delivers the cache event
-
-
Method Details
-
getRevision
Returns the canonical revision selected by the cache.- Returns:
- the canonical revision
-
getEventDispatcher
Returns the optional deferred cache-event callback.- Returns:
- the callback, or
nullif interning did not add a revision
-