org.jboss.ejb3.cache
Class NoPassivationCache
java.lang.Object
org.jboss.ejb3.cache.NoPassivationCache
- All Implemented Interfaces:
- org.jboss.ejb3.cache.Cache<StatefulBeanContext>, StatefulCache
public class NoPassivationCache
- extends Object
- implements StatefulCache
Comment
- Version:
- $Revision: 73458 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoPassivationCache
public NoPassivationCache()
initialize
public void initialize(EJBContainer container)
throws Exception
- Specified by:
initialize
in interface StatefulCache
- Throws:
Exception
start
public void start()
- Specified by:
start
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
stop
public void stop()
- Specified by:
stop
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
create
public StatefulBeanContext create()
create
public StatefulBeanContext create(Class<?>[] initTypes,
Object[] initValues)
- Specified by:
create
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
- Specified by:
create
in interface StatefulCache
get
public StatefulBeanContext get(Object key)
throws javax.ejb.EJBException
- Description copied from interface:
StatefulCache
- Gets the context with the given id.
Same as
getContext(key, true)
- Specified by:
get
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
- Specified by:
get
in interface StatefulCache
- Parameters:
key
- the id
- Returns:
- the context
- Throws:
javax.ejb.EJBException
get
public StatefulBeanContext get(Object key,
boolean markInUse)
throws javax.ejb.EJBException
- Description copied from interface:
StatefulCache
- Get the context with the given id, optionally marking the context as
being in use.
- Specified by:
get
in interface StatefulCache
- Parameters:
key
- the context's idmarkInUse
- 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
peek
public StatefulBeanContext peek(Object key)
throws javax.ejb.NoSuchEJBException
- Specified by:
peek
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
- Throws:
javax.ejb.NoSuchEJBException
release
public void release(StatefulBeanContext ctx)
- Specified by:
release
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
remove
public void remove(Object key)
- Specified by:
remove
in interface org.jboss.ejb3.cache.Cache<StatefulBeanContext>
getCacheSize
public int getCacheSize()
- Specified by:
getCacheSize
in interface StatefulCache
getTotalSize
public int getTotalSize()
- Specified by:
getTotalSize
in interface StatefulCache
getCreateCount
public int getCreateCount()
- Specified by:
getCreateCount
in interface StatefulCache
getPassivatedCount
public int getPassivatedCount()
- Specified by:
getPassivatedCount
in interface StatefulCache
getRemoveCount
public int getRemoveCount()
- Specified by:
getRemoveCount
in interface StatefulCache
getAvailableCount
public int getAvailableCount()
- Specified by:
getAvailableCount
in interface StatefulCache
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSize
in interface StatefulCache
getCurrentSize
public int getCurrentSize()
- Specified by:
getCurrentSize
in interface StatefulCache
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface StatefulCache
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.