|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstancePool
Defines the model for a EnterpriseContext instance pool.
| Field Summary |
|---|
| Method Summary | |
|---|---|
void |
discard(EnterpriseContext ctx)
Discard an anonymous instance after invocation. |
void |
free(EnterpriseContext ctx)
Return an anonymous instance after invocation. |
EnterpriseContext |
get()
Get an instance without identity. |
int |
getCurrentSize()
Return the size of the pool. |
int |
getMaxSize()
Get the maximum size of the pool. |
| 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()
throws Exception
Can be used by finders and create-methods, or stateless beans
Exception - RemoteExceptionvoid free(EnterpriseContext ctx)
ctx - The context to free.void discard(EnterpriseContext ctx)
ctx - The context to discard.int getCurrentSize()
int getMaxSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||