Class InternalCDORevisionCache.InternResult

java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionCache.InternResult
Enclosing interface:
InternalCDORevisionCache

public static final class InternalCDORevisionCache.InternResult extends Object
Result of an atomic cache interning operation whose event delivery is deferred to the caller.
Since:
4.29
Author:
Eike Stepper
  • Constructor Details

    • InternResult

      public InternResult(CDORevision revision, Runnable eventDispatcher)
      Creates an interning result.
      Parameters:
      revision - the canonical revision returned by the cache
      eventDispatcher - the optional callback that delivers the cache event
  • Method Details

    • getRevision

      public CDORevision getRevision()
      Returns the canonical revision selected by the cache.
      Returns:
      the canonical revision
    • getEventDispatcher

      public Runnable getEventDispatcher()
      Returns the optional deferred cache-event callback.
      Returns:
      the callback, or null if interning did not add a revision