|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.plugins.AbstractInstancePool
org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
public class SingletonStatelessSessionInstancePool
Singleton pool for session beans. This lets you have singletons in EJB!
Field Summary |
---|
Fields inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
---|
container, isStrict, maxSize, pool, reclaim |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
SingletonStatelessSessionInstancePool()
|
Method Summary | |
---|---|
void |
add()
Add a instance in the pool |
protected EnterpriseContext |
create(Object instance)
|
void |
discard(EnterpriseContext ctx)
Discard an anonymous instance after invocation. |
void |
free(EnterpriseContext ctx)
Return an instance after invocation. |
EnterpriseContext |
get()
Get the singleton instance |
long |
getAvailableCount()
Get the current avaiable count from the strict max view. |
int |
getCurrentSize()
Return the size of the pool. |
int |
getMaxSize()
Get the maximum size of the pool. |
void |
importXml(Element element)
XmlLoadable implementation |
Methods inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
---|
clear, createService, destroyService, getContainer, setContainer |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public SingletonStatelessSessionInstancePool()
Method Detail |
---|
public EnterpriseContext get() throws Exception
get
in interface InstancePool
get
in class AbstractInstancePool
Exception
public void free(EnterpriseContext ctx)
free
in interface InstancePool
free
in class AbstractInstancePool
ctx
- public void discard(EnterpriseContext ctx)
InstancePool
discard
in interface InstancePool
discard
in class AbstractInstancePool
ctx
- The context to discard.public void add() throws Exception
Exception
public int getCurrentSize()
InstancePool
getCurrentSize
in interface InstancePool
getCurrentSize
in interface AbstractInstancePoolMBean
getCurrentSize
in class AbstractInstancePool
public int getMaxSize()
InstancePool
getMaxSize
in interface InstancePool
getMaxSize
in interface AbstractInstancePoolMBean
getMaxSize
in class AbstractInstancePool
public long getAvailableCount()
AbstractInstancePool
getAvailableCount
in class AbstractInstancePool
public void importXml(Element element) throws DeploymentException
AbstractInstancePool
importXml
in interface XmlLoadable
importXml
in class AbstractInstancePool
DeploymentException
protected EnterpriseContext create(Object instance) throws Exception
create
in class AbstractInstancePool
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |