shocks.framework.workflow.sequence.repository
Class SequenceVersionCache

java.lang.Object
  extended byshocks.framework.workflow.sequence.repository.SequenceVersionCache

public class SequenceVersionCache
extends java.lang.Object


Constructor Summary
SequenceVersionCache(Workflow sequence)
           
 
Method Summary
 void add(Workflow sequence)
          Adds a workflow instance to the SequenceInstancePool provided there is no sequence existing with the same or lesser version.
 Workflow lease()
          Get the instance pool with the most recent version and return a readied Workflow component.
 void release(Workflow sequence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceVersionCache

public SequenceVersionCache(Workflow sequence)
Method Detail

lease

public Workflow lease()
Get the instance pool with the most recent version and return a readied Workflow component.

Returns:
Workflow sequence

add

public void add(Workflow sequence)
Adds a workflow instance to the SequenceInstancePool provided there is no sequence existing with the same or lesser version.

Parameters:
sequence - to be added to the repository

release

public void release(Workflow sequence)