|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.cache.impl.SimplePassivatingCache<T>
public class SimplePassivatingCache<T extends Identifiable & Serializable>
Comment
Constructor Summary | |
---|---|
SimplePassivatingCache(StatefulObjectFactory<T> factory,
PassivationManager<T> passivationManager,
ObjectStore<T> store)
|
Method Summary | |
---|---|
protected org.jboss.ejb3.cache.impl.SimplePassivatingCache.Entry |
activate(Object key)
Activate an entry and put it back in the cache. |
T |
create(Class<?>[] initTypes,
Object[] initValues)
Create a new object. |
T |
get(Object key)
Get the specified object from cache. |
void |
passivate(Object key)
Force passivation of an object. |
T |
peek(Object key)
Peek at an object which might be in use. |
void |
release(T obj)
Release the object from use. |
protected void |
releaseByKey(Object key)
|
void |
remove(Object key)
Remove the specified object from cache. |
void |
setName(String name)
|
void |
setSessionTimeout(int sessionTimeout)
|
void |
start()
Start the cache. |
void |
stop()
Stop the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePassivatingCache(StatefulObjectFactory<T> factory, PassivationManager<T> passivationManager, ObjectStore<T> store)
Method Detail |
---|
protected org.jboss.ejb3.cache.impl.SimplePassivatingCache.Entry activate(Object key)
key
- the indentifier of the object
public T create(Class<?>[] initTypes, Object[] initValues)
Cache
create
in interface Cache<T extends Identifiable & Serializable>
public T get(Object key) throws javax.ejb.NoSuchEJBException
Cache
get
in interface Cache<T extends Identifiable & Serializable>
key
- the identifier of the object
javax.ejb.NoSuchEJBException
- if the object does not existpublic void passivate(Object key)
PassivatingCache
passivate
in interface PassivatingCache<T extends Identifiable & Serializable>
key
- the identifier of the objectpublic T peek(Object key) throws javax.ejb.NoSuchEJBException
Cache
peek
in interface Cache<T extends Identifiable & Serializable>
key
- the identifier of the object
javax.ejb.NoSuchEJBException
- if the object does not existpublic void release(T obj)
Cache
release
in interface Cache<T extends Identifiable & Serializable>
obj
- the objectprotected void releaseByKey(Object key)
public void remove(Object key)
Cache
remove
in interface Cache<T extends Identifiable & Serializable>
key
- the identifier of the objectpublic void setName(String name)
public void setSessionTimeout(int sessionTimeout)
public void start()
Cache
start
in interface Cache<T extends Identifiable & Serializable>
public void stop()
Cache
stop
in interface Cache<T extends Identifiable & Serializable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |