alfresco-community-repo/source/java/org/alfresco/repo/avm/CreateVersionCallback.java
Jon Cox 7d537bf42d Added transaction hook for store purges, version creations and version purges;
this allows an internal cache to be maintained that permits most calls to 
the heavyweight getLatestSnapshotID(String store) AVM API to be skipped.
This addresses a performance problem noticed when the number of stores 
is large.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-07-05 22:43:31 +00:00

19 lines
454 B
Java

/**
*
*/
package org.alfresco.repo.avm;
/**
* Callback interface for those interested in new version creation.
* @author britt
*/
public interface CreateVersionCallback
{
/**
* A version of a store has been created.
* @param storeName The name of the store in which a new version has been created.
* @param versionID The version id of the new version.
*/
public void versionCreated(String storeName, int versionID);
}