Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java166
1 files changed, 83 insertions, 83 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java
index 2211737463..7bd85e287a 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionCache.java
@@ -1,83 +1,83 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.common.revision;
-
-import org.eclipse.emf.cdo.common.branch.CDOBranchPoint;
-import org.eclipse.emf.cdo.common.branch.CDOBranchVersion;
-import org.eclipse.emf.cdo.common.id.CDOID;
-import org.eclipse.emf.cdo.internal.common.revision.NOOPRevisionCache;
-
-import org.eclipse.net4j.util.event.IEvent;
-import org.eclipse.net4j.util.event.INotifier;
-
-import org.eclipse.emf.ecore.EClass;
-
-import java.util.List;
-
-/**
- * Caches {@link CDORevision revisions} and possibly {@link EvictionEvent evicts} those that are no longer strongly
- * referenced when free memory runs low.
- *
- * @author Eike Stepper
- * @since 4.0
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- * @apiviz.composedOf {@link CDORevision}
- */
-public interface CDORevisionCache extends CDORevisionCacheAdder, INotifier
-{
- /**
- * @since 3.0
- */
- public static final CDORevisionCache NOOP = NOOPRevisionCache.INSTANCE;
-
- public EClass getObjectType(CDOID id);
-
- /**
- * @since 3.0
- */
- public CDORevision getRevision(CDOID id, CDOBranchPoint branchPoint);
-
- /**
- * @since 3.0
- */
- public CDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion);
-
- /**
- * Returns a list of {@link CDORevision revisions} that are current.
- *
- * @since 3.0
- */
- public List<CDORevision> getCurrentRevisions();
-
- /**
- * An {@link IEvent event} fired from a {@link CDORevisionCache revision cache} for {@link CDORevision revisions} that
- * are evicted because they are no longer strongly referenced when free memory runs low.
- *
- * @author Eike Stepper
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
- public interface EvictionEvent extends IEvent, CDORevisionKey
- {
- /**
- * @since 3.0
- */
- public CDORevisionCache getSource();
-
- /**
- * May be <code>null</code> for certain cache implementations.
- *
- * @since 3.0
- */
- public CDORevision getRevision();
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.common.revision;
+
+import org.eclipse.emf.cdo.common.branch.CDOBranchPoint;
+import org.eclipse.emf.cdo.common.branch.CDOBranchVersion;
+import org.eclipse.emf.cdo.common.id.CDOID;
+import org.eclipse.emf.cdo.internal.common.revision.NOOPRevisionCache;
+
+import org.eclipse.net4j.util.event.IEvent;
+import org.eclipse.net4j.util.event.INotifier;
+
+import org.eclipse.emf.ecore.EClass;
+
+import java.util.List;
+
+/**
+ * Caches {@link CDORevision revisions} and possibly {@link EvictionEvent evicts} those that are no longer strongly
+ * referenced when free memory runs low.
+ *
+ * @author Eike Stepper
+ * @since 4.0
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ * @apiviz.composedOf {@link CDORevision}
+ */
+public interface CDORevisionCache extends CDORevisionCacheAdder, INotifier
+{
+ /**
+ * @since 3.0
+ */
+ public static final CDORevisionCache NOOP = NOOPRevisionCache.INSTANCE;
+
+ public EClass getObjectType(CDOID id);
+
+ /**
+ * @since 3.0
+ */
+ public CDORevision getRevision(CDOID id, CDOBranchPoint branchPoint);
+
+ /**
+ * @since 3.0
+ */
+ public CDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion);
+
+ /**
+ * Returns a list of {@link CDORevision revisions} that are current.
+ *
+ * @since 3.0
+ */
+ public List<CDORevision> getCurrentRevisions();
+
+ /**
+ * An {@link IEvent event} fired from a {@link CDORevisionCache revision cache} for {@link CDORevision revisions} that
+ * are evicted because they are no longer strongly referenced when free memory runs low.
+ *
+ * @author Eike Stepper
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+ public interface EvictionEvent extends IEvent, CDORevisionKey
+ {
+ /**
+ * @since 3.0
+ */
+ public CDORevisionCache getSource();
+
+ /**
+ * May be <code>null</code> for certain cache implementations.
+ *
+ * @since 3.0
+ */
+ public CDORevision getRevision();
+ }
+}

Back to the top