Package org.eclipse.emf.cdo.spi.server
Interface InternalCommitManager
public interface InternalCommitManager
Repository service that schedules transaction commit contexts and lets callers await, remove, or roll back the
pending work. Its pre-commit phase can run asynchronously before the store write and commit phases proceed.
- Since:
- 3.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionget(InternalTransaction transaction) voidpreCommit(InternalCommitContext commitContext, CDODataInput in, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Create a future to execute commitContext in a different thread.voidpreCommit(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Deprecated.voidremove(InternalCommitContext commitContext) Called after a commitContext is done successfully or not.voidrollback(InternalCommitContext commitContext) voidsetRepository(InternalRepository repository) voidwaitForTermination(InternalTransaction transaction) Waiting for a commit to be done.
-
Method Details
-
getRepository
InternalRepository getRepository() -
setRepository
-
preCommit
@Deprecated void preCommit(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Deprecated.As of 4.5 usepreCommit(InternalCommitContext, CDODataInput, OMMonitor).Create a future to execute commitContext in a different thread. -
preCommit
void preCommit(InternalCommitContext commitContext, CDODataInput in, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Create a future to execute commitContext in a different thread.- Since:
- 4.5
-
remove
Called after a commitContext is done successfully or not. -
rollback
-
waitForTermination
void waitForTermination(InternalTransaction transaction) throws InterruptedException, ExecutionException Waiting for a commit to be done. -
get
-
preCommit(InternalCommitContext, CDODataInput, OMMonitor).