diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java index 38772bd8b2..424d0fb989 100644 --- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java +++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/InternalCommitManager.java @@ -1,47 +1,47 @@ -/*
- * 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.spi.server;
-
-import org.eclipse.net4j.util.om.monitor.OMMonitor;
-
-import java.util.concurrent.ExecutionException;
-
-/**
- * @author Eike Stepper
- * @since 3.0
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface InternalCommitManager
-{
- public InternalRepository getRepository();
-
- public void setRepository(InternalRepository repository);
-
- /**
- * Create a future to execute commitContext in a different thread.
- */
- public void preCommit(InternalCommitContext commitContext, OMMonitor monitor);
-
- /**
- * Called after a commitContext is done successfully or not.
- */
- public void remove(InternalCommitContext commitContext);
-
- public void rollback(InternalCommitContext commitContext);
-
- /**
- * Waiting for a commit to be done.
- */
- public void waitForTermination(InternalTransaction transaction) throws InterruptedException, ExecutionException;
-
- public InternalCommitContext get(InternalTransaction transaction);
-}
+/* + * 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.spi.server; + +import org.eclipse.net4j.util.om.monitor.OMMonitor; + +import java.util.concurrent.ExecutionException; + +/** + * @author Eike Stepper + * @since 3.0 + * @noextend This interface is not intended to be extended by clients. + * @noimplement This interface is not intended to be implemented by clients. + */ +public interface InternalCommitManager +{ + public InternalRepository getRepository(); + + public void setRepository(InternalRepository repository); + + /** + * Create a future to execute commitContext in a different thread. + */ + public void preCommit(InternalCommitContext commitContext, OMMonitor monitor); + + /** + * Called after a commitContext is done successfully or not. + */ + public void remove(InternalCommitContext commitContext); + + public void rollback(InternalCommitContext commitContext); + + /** + * Waiting for a commit to be done. + */ + public void waitForTermination(InternalTransaction transaction) throws InterruptedException, ExecutionException; + + public InternalCommitContext get(InternalTransaction transaction); +} |