|
|||||||||
| 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 & java.io.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(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
Create a new object. |
T |
get(java.lang.Object key)
Get the specified object from cache. |
void |
passivate(java.lang.Object key)
Force passivation of an object. |
T |
peek(java.lang.Object key)
Peek at an object which might be in use. |
void |
release(T obj)
Release the object from use. |
void |
remove(java.lang.Object key)
Remove the specified object from cache. |
void |
setGroup(T obj,
PassivationGroup group)
|
void |
setName(java.lang.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(java.lang.Object key)
PassivatingCache
passivate in interface PassivatingCache<T extends Identifiable & java.io.Serializable>key - the identifier of the object
public T create(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
Cache
create in interface Cache<T extends Identifiable & java.io.Serializable>
public T get(java.lang.Object key)
throws javax.ejb.NoSuchEJBException
Cache
get in interface Cache<T extends Identifiable & java.io.Serializable>key - the identifier of the object
javax.ejb.NoSuchEJBException - if the object does not exist
public T peek(java.lang.Object key)
throws javax.ejb.NoSuchEJBException
Cache
peek in interface Cache<T extends Identifiable & java.io.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 & java.io.Serializable>obj - the objectpublic void remove(java.lang.Object key)
Cache
remove in interface Cache<T extends Identifiable & java.io.Serializable>key - the identifier of the object
public void setGroup(T obj,
PassivationGroup group)
setGroup in interface GroupedPassivatingCache<T extends Identifiable & java.io.Serializable>public void setName(java.lang.String name)
public void setSessionTimeout(int sessionTimeout)
public void start()
Cache
start in interface Cache<T extends Identifiable & java.io.Serializable>public void stop()
Cache
stop in interface Cache<T extends Identifiable & java.io.Serializable>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||