blob: 97860e51fc4888ddca63b8c87167160aff53cc67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**
* Copyright (c) 2004 - 2009 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
*/
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);
}
|