org.enhydra.shark.api.internal.caching
Interface ProcessCache

All Superinterfaces:
ObjectCache

public interface ProcessCache
extends ObjectCache

This interface presents cache that stores processes.

Author:
Sasa Bojanic, Tanja Jovanovic

Method Summary
 void add(java.lang.String procId, WfProcessInternal proc)
          Adds process to the process cache.
 WfProcessInternal get(java.lang.String procId)
          Returns the process from the process cache with id procId.
 void remove(java.lang.String procId)
          Removes process from the process cache.
 
Methods inherited from interface org.enhydra.shark.api.internal.caching.ObjectCache
configure, getAll, getSize, howManyEntries, setSize
 

Method Detail

add

void add(java.lang.String procId,
         WfProcessInternal proc)
         throws java.lang.Exception
Adds process to the process cache.

Parameters:
procId - process id.
proc - WfProcessInternal object to be added to the process cache.
Throws:
java.lang.Exception - Thrown if an error occurs.

remove

void remove(java.lang.String procId)
            throws java.lang.Exception
Removes process from the process cache.

Parameters:
procId - process id.
Throws:
java.lang.Exception - Thrown if an error occurs.

get

WfProcessInternal get(java.lang.String procId)
                      throws java.lang.Exception
Returns the process from the process cache with id procId.

Parameters:
procId - process id.
Returns:
Process from the cache with the id procId if exists, otherwise null.
Throws:
java.lang.Exception - Thrown if an error occurs.