|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents life cycle service, which manages instances of services for particular Web Service context.
It allows forced disposal of a particular service to set TTL of a service and registration of a life cycle controller, which is notified about services registration and unregistration, thus allowing the application to handle these events
Method Summary | |
void |
disposeServiceInstance(java.lang.Object instance)
Deprecated. Forces deregistration of given service instance |
long |
getServiceInstanceTTL(java.lang.Object instance)
Deprecated. Gets TTL of particular service instance. |
LifeCycleController |
registerLifeCycleController(LifeCycleController controller)
Deprecated. Registers LifeCycleController for this Web Service
context |
void |
setServiceInstanceTTL(java.lang.Object instance,
long ttl)
Deprecated. Sets TTL of particular service instance. |
Method Detail |
public void disposeServiceInstance(java.lang.Object instance)
instance
- the service instance to be unregisteredpublic void setServiceInstanceTTL(java.lang.Object instance, long ttl)
Use value -1
to set TTL to indefinite.
instance
- the service instance to be set TTL forttl
- TTL value to be setpublic long getServiceInstanceTTL(java.lang.Object instance)
instance
- the service instance to be set TTL for
public LifeCycleController registerLifeCycleController(LifeCycleController controller)
LifeCycleController
for this Web Service
context
controller
- LifeCycleController
interface
implementation to be associated with this
LifeCycleService
null
if none registered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |