|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EasyBeansSFSB
Defines the interface of a stateful session bean.
| Method Summary | |
|---|---|
Long |
getEasyBeansStatefulID()
Gets the stateful ID of the current bean. |
Boolean |
getInTransaction()
Boolean indicating if the Bean is currently under a running transaction. |
Long |
getStatefulTimeout()
The next timeout deadline |
void |
setEasyBeansStatefulID(Long easyBeansStatefulID)
Sets the ID for this stateful bean. |
void |
setInTransaction(Boolean inTransaction)
Sets the boolean indicating if the Bean is currently under a running transaction |
void |
setStatefulTimeout(Long statefulTimeout)
Sets the next timeout deadline |
| Methods inherited from interface org.ow2.easybeans.api.bean.EasyBeansSB |
|---|
getEasyBeansRemoved, setEasyBeansRemoved |
| Methods inherited from interface org.ow2.easybeans.api.bean.EasyBeansBean |
|---|
easyBeansCleanup, getEasyBeansContext, getEasyBeansFactory, setEasyBeansContext, setEasyBeansFactory, setEasyBeansInvocationContextFactory |
| Methods inherited from interface org.ow2.easybeans.api.injection.EasyBeansInjection |
|---|
injectedByEasyBeans |
| Methods inherited from interface org.ow2.easybeans.api.bean.timer.EasyBeansTimedObject |
|---|
timeoutCallByEasyBeans |
| Methods inherited from interface org.ow2.easybeans.api.bean.lifecycle.EasyBeansSFSBLifeCycle |
|---|
postActivateEasyBeansLifeCycle, prePassivateEasyBeansLifeCycle |
| Methods inherited from interface org.ow2.easybeans.api.bean.lifecycle.EasyBeansLifeCycle |
|---|
postConstructEasyBeansLifeCycle, preDestroyEasyBeansLifeCycle |
| Method Detail |
|---|
Long getEasyBeansStatefulID()
void setEasyBeansStatefulID(Long easyBeansStatefulID)
easyBeansStatefulID - the id to set.Boolean getInTransaction()
Boolean indicating if the Bean is currently under a running transaction.
If true it prevent the been from being collected due to an StatefulTimeout.
If the bean metadata doesn't define a Stateful Timeout then it should return null
void setInTransaction(Boolean inTransaction)
inTransaction - true if the bean is under a running transactionLong getStatefulTimeout()
The next timeout deadline
If the bean metadata doesn't define a Stateful Timeout then it should return null
System.nanoTime()void setStatefulTimeout(Long statefulTimeout)
statefulTimeout - The next timeout deadline to be compared with System.nanoTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||