org.jboss.ejb3.cache
Interface StatefulCache

All Superinterfaces:
org.jboss.ejb3.cache.Cache<StatefulBeanContext>
All Known Subinterfaces:
ClusteredStatefulCache
All Known Implementing Classes:
NoPassivationCache, SimpleStatefulCache, StatefulTreeCache

Deprecated. use Cache

@Deprecated
public interface StatefulCache
extends org.jboss.ejb3.cache.Cache<StatefulBeanContext>

Stateful StatelessBean Bean cache

Version:
$Revision: 72001 $
Author:
Bill Burke

Method Summary
 StatefulBeanContext create(Class<?>[] initTypes, Object[] initValues)
          Deprecated.  
 StatefulBeanContext get(Object key)
          Deprecated. Gets the context with the given id.
 StatefulBeanContext get(Object key, boolean markInUse)
          Deprecated. Get the context with the given id, optionally marking the context as being in use.
 int getAvailableCount()
          Deprecated.  
 int getCacheSize()
          Deprecated.  
 int getCreateCount()
          Deprecated.  
 int getCurrentSize()
          Deprecated.  
 int getMaxSize()
          Deprecated.  
 int getPassivatedCount()
          Deprecated.  
 int getRemoveCount()
          Deprecated.  
 int getTotalSize()
          Deprecated.  
 void initialize(EJBContainer container)
          Deprecated.  
 boolean isStarted()
          Deprecated.  
 
Methods inherited from interface org.jboss.ejb3.cache.Cache
peek, release, remove, start, stop
 

Method Detail

create

StatefulBeanContext create(Class<?>[] initTypes,
                           Object[] initValues)
Deprecated. 
Specified by:
create in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>

get

StatefulBeanContext get(Object key)
                        throws javax.ejb.EJBException
Deprecated. 
Gets the context with the given id.

Same as getContext(key, true)

Specified by:
get in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
Parameters:
key - the id
Returns:
the context
Throws:
javax.ejb.NoSuchEJBException - if no context with the given id exists or if the context exists but has been marked as removed
javax.ejb.EJBException

get

StatefulBeanContext get(Object key,
                        boolean markInUse)
                        throws javax.ejb.EJBException
Deprecated. 
Get the context with the given id, optionally marking the context as being in use.

Parameters:
key - the context's id
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
Returns:
the context
Throws:
javax.ejb.NoSuchEJBException - if no context with the given id exists or if the context exists but has been marked as removed and markInUse is true
javax.ejb.EJBException

getAvailableCount

int getAvailableCount()
Deprecated. 

getCacheSize

int getCacheSize()
Deprecated. 

getCreateCount

int getCreateCount()
Deprecated. 

getCurrentSize

int getCurrentSize()
Deprecated. 

getMaxSize

int getMaxSize()
Deprecated. 

getPassivatedCount

int getPassivatedCount()
Deprecated. 

getRemoveCount

int getRemoveCount()
Deprecated. 

getTotalSize

int getTotalSize()
Deprecated. 

initialize

void initialize(EJBContainer container)
                throws Exception
Deprecated. 
Throws:
Exception

isStarted

boolean isStarted()
Deprecated. 


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.