FileDocCategorySizeDatePackage
StatefulCache.javaAPI DocJBoss 4.2.13362Fri Jul 13 20:53:48 BST 2007org.jboss.ejb3.cache

StatefulCache

public interface StatefulCache
Stateful StatelessBean Bean cache
author
Bill Burke
version
$Revision: 61329 $

Fields Summary
Constructors Summary
Methods Summary
public org.jboss.ejb3.stateful.StatefulBeanContextcreate()
returns a key not the actual object

public org.jboss.ejb3.stateful.StatefulBeanContextcreate(java.lang.Class[] initTypes, java.lang.Object[] initValues)

public voidfinished(org.jboss.ejb3.stateful.StatefulBeanContext ctx)

public org.jboss.ejb3.stateful.StatefulBeanContextget(java.lang.Object key)
Gets the context with the given id.

Same as getContext(key, true)

param
key the id
return
the context
throws
NoSuchEJBException if no context with the given id exists or if the context exists but has been marked as removed
throws
EJBException

public org.jboss.ejb3.stateful.StatefulBeanContextget(java.lang.Object key, boolean markInUse)
Get the context with the given id, optionally marking the context as being in use.

param
key the context's id
param
markInUse if true, marks any returned context as being in use. If false, will return contexts that are marked as removed; otherwise will throw NoSuchEJBException if such a context is found
return
the context
throws
NoSuchEJBException if no context with the given id exists or if the context exists but has been marked as removed and markInUse is true
throws
EJBException

public intgetAvailableCount()

public intgetCacheSize()

public intgetCreateCount()

public intgetCurrentSize()

public intgetMaxSize()

public intgetPassivatedCount()

public intgetRemoveCount()

public intgetTotalSize()

public voidinitialize(org.jboss.ejb3.Container container)

public voidremove(java.lang.Object key)

public voidstart()

public voidstop()