Package org.alfresco.util.resource
Interface MethodResourceManager
-
public interface MethodResourceManagerA controller of system or in-transaction resources. Given a few statistics regarding a method's call history, and using whatever other measurements are needed, implementations will decide whether and how to clear up sufficient system resources.- Author:
- Derek Hulley
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodResourceManager.MethodStatisticsHelper class to carry basic method call statistics.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmanageResources(java.util.Map<java.lang.reflect.Method,MethodResourceManager.MethodStatistics> methodStatsByMethod, long transactionElapsedTimeNs, java.lang.reflect.Method currentMethod)Check and free any required resources for an imminent.
-
-
-
Method Detail
-
manageResources
void manageResources(java.util.Map<java.lang.reflect.Method,MethodResourceManager.MethodStatistics> methodStatsByMethod, long transactionElapsedTimeNs, java.lang.reflect.Method currentMethod)
Check and free any required resources for an imminent. Details of the current transaction and some gathered information about previous calls to associated methods is also provided.- Parameters:
methodStatsByMethod- all known methods and their basic call statstransactionElapsedTimeNs- the elapsed time in the current transactioncurrentMethod- the method about to be called
-
-