mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Refactored persistence for AVM. I'm guessing because I dropped a number of
unnecessary flushes seems about 20% snappier. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
15
source/java/org/alfresco/repo/avm/RetryingTransaction.java
Normal file
15
source/java/org/alfresco/repo/avm/RetryingTransaction.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
|
||||
public interface RetryingTransaction
|
||||
{
|
||||
|
||||
/**
|
||||
* Perform a set of operations under a single transaction.
|
||||
* Keep trying if the operation fails because of a concurrency issue.
|
||||
* @param callback The worker.
|
||||
* @param write Whether this is a write operation.
|
||||
*/
|
||||
public void perform(RetryingTransactionCallback callback, boolean write);
|
||||
|
||||
}
|
Reference in New Issue
Block a user