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