|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.cache.impl.GroupedPassivatingCacheImpl<T>
public class GroupedPassivatingCacheImpl<T extends Identifiable & Serializable>
Comment
Nested Class Summary | |
---|---|
protected class |
GroupedPassivatingCacheImpl.Entry
|
Constructor Summary | |
---|---|
GroupedPassivatingCacheImpl(StatefulObjectFactory<T> factory,
PassivationManager<T> passivationManager,
ObjectStore<T> store,
PassivatingCache<PassivationGroup> groupCache)
|
Method Summary | |
---|---|
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. |
void |
remove(Object key)
Remove the specified object from cache. |
void |
setGroup(T obj,
PassivationGroup group)
|
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 GroupedPassivatingCacheImpl(StatefulObjectFactory<T> factory, PassivationManager<T> passivationManager, ObjectStore<T> store, PassivatingCache<PassivationGroup> groupCache)
Method Detail |
---|
public void passivate(Object key)
PassivatingCache
passivate
in interface PassivatingCache<T extends Identifiable & Serializable>
key
- the identifier of the objectpublic 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 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 objectpublic void remove(Object key)
Cache
remove
in interface Cache<T extends Identifiable & Serializable>
key
- the identifier of the objectpublic void setGroup(T obj, PassivationGroup group)
setGroup
in interface GroupedPassivatingCache<T extends Identifiable & Serializable>
public 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 |