|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The plugin that gives a container a cache for bean instances.
Field Summary |
Method Summary | |
void |
flush()
Flush the cache. |
EnterpriseContext (src) |
get(java.lang.Object id)
Gets a bean instance from this cache given the identity. |
long |
getCacheSize()
Get the current cache size |
void |
insert(EnterpriseContext (src) ctx)
Inserts an active bean instance after creation or activation. |
boolean |
isActive(java.lang.Object id)
Checks whether an instance corresponding to a particular id is active. |
void |
release(EnterpriseContext (src) ctx)
Releases the given bean instance from this cache. |
void |
remove(java.lang.Object id)
Removes a bean instance from this cache given the identity. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin (src) |
setContainer |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Method Detail |
public EnterpriseContext (src) get(java.lang.Object id) throws java.rmi.RemoteException, java.rmi.NoSuchObjectException
Implementation should have O(1) complexity.
This method is never called for stateless session beans.
id
- The primary key of the bean .
java.rmi.RemoteException
- In case of illegal calls (concurrent /
reentrant)
java.rmi.NoSuchObjectException
- if the bean cannot be found.release(org.jboss.ejb.EnterpriseContext)
public void insert(EnterpriseContext (src) ctx)
Implementation should guarantee proper locking and O(1) complexity.
ctx
- The EnterpriseContext to insert in the cacheremove(java.lang.Object)
public void release(EnterpriseContext (src) ctx)
ctx
- The EnterpriseContext to releaseget(java.lang.Object)
public void remove(java.lang.Object id)
id
- The pimary key of the bean.insert(org.jboss.ejb.EnterpriseContext)
public boolean isActive(java.lang.Object id)
id
- The pimary key of the bean.insert(org.jboss.ejb.EnterpriseContext)
public long getCacheSize()
public void flush()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |