org.apache.ode.bpel.engine
Interface DehydrationPolicy

All Known Implementing Classes:
CountLRUDehydrationPolicy

public interface DehydrationPolicy

Defines a policy to dehydrate running processes based on a limit in total process count or processes that haven't been used for a while.


Method Summary
 java.util.List<BpelProcess> markForDehydration(java.util.List<BpelProcess> runningProcesses)
          Checks the currently running processes and marks some of them for dehydration according to a specifically configured policy.
 

Method Detail

markForDehydration

java.util.List<BpelProcess> markForDehydration(java.util.List<BpelProcess> runningProcesses)
Checks the currently running processes and marks some of them for dehydration according to a specifically configured policy. The returned processes will be dehydrated by the engine.

Parameters:
runningProcesses - all running (currently hydrated) processes
Returns:
processes elected for dehydration