public class StatelessInstanceManager
extends java.lang.Object
Constructor and Description |
---|
StatelessInstanceManager(SecurityService securityService,
Duration accessTimeout,
Duration closeTimeout,
Pool.Builder poolBuilder,
int callbackThreads,
java.util.concurrent.ScheduledExecutorService ses) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(BeanContext beanContext) |
void |
destroy() |
void |
discardInstance(ThreadContext callContext,
java.lang.Object bean)
This method is called to release the semaphore in case of the business method
throwing a system exception
|
Instance |
getInstance(ThreadContext callContext)
Removes an instance from the pool and returns it for use
by the container in business methods.
|
void |
poolInstance(ThreadContext callContext,
java.lang.Object bean)
All instances are removed from the pool in getInstance(...).
|
void |
undeploy(BeanContext beanContext) |
public StatelessInstanceManager(SecurityService securityService, Duration accessTimeout, Duration closeTimeout, Pool.Builder poolBuilder, int callbackThreads, java.util.concurrent.ScheduledExecutorService ses)
public void destroy()
public Instance getInstance(ThreadContext callContext) throws OpenEJBException
callContext
- ThreadContextOpenEJBException
public void poolInstance(ThreadContext callContext, java.lang.Object bean) throws OpenEJBException
callContext
- ThreadContextbean
- ObjectOpenEJBException
public void discardInstance(ThreadContext callContext, java.lang.Object bean) throws SystemException
callContext
- ThreadContextbean
- ObjectSystemException
public void deploy(BeanContext beanContext) throws OpenEJBException
OpenEJBException
public void undeploy(BeanContext beanContext)