KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > caching > ProcessCache


1 /* CacheMgr.java */
2
3 package org.enhydra.shark.api.internal.caching;
4
5 import org.enhydra.shark.api.internal.working.WfProcessInternal;
6 import org.enhydra.shark.api.RootException;
7
8 /**
9  * This interface presents cache that stores processes.
10  * @author Sasa Bojanic
11  * @author Tanja Jovanovic
12  */

13 public interface ProcessCache extends ObjectCache {
14
15    /**
16     * Adds process to the process cache.
17     *
18     * @param procId process id.
19     * @param proc WfProcessInternal object to be added to the process cache.
20     *
21     * @exception RootException Thrown if an error occurs.
22     */

23    public void add (String JavaDoc procId, WfProcessInternal proc) throws RootException;
24
25    /**
26     * Removes process from the process cache.
27     *
28     * @param procId process id.
29     *
30     * @exception RootException Thrown if an error occurs.
31     */

32    public void remove (String JavaDoc procId) throws RootException;
33
34    /**
35     * Returns the process from the process cache with id <i>procId</i>.
36     *
37     * @param procId process id.
38     * @return Process from the cache with the id <i>procId</i> if exists,
39     * otherwise null.
40     * @exception RootException Thrown if an error occurs.
41     */

42    public WfProcessInternal get (String JavaDoc procId) throws RootException;
43 }
44
Popular Tags