|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A managed service context provides the means to have more control over child
services. A good example is
StandardThreadServiceRouterService
which handles requests from multiple threads (windows) in the same session by
having different children for different windows and the current service ID is
determined via getCurrentId().
| Method Summary | |
Service |
addService(Object id,
Service service)
Adds a child service with the specified id. |
Service |
addService(Object id,
Service service,
Long timeToLive)
Adds a child service with the specified id, and specifies that service may be killed by service manager after it has been inactive for specified time. |
void |
close(Object id)
Closes the service under the key id. |
Object |
getCurrentId()
Returns the id of the current service. |
Service |
getService(Object id)
|
| Method Detail |
public Object getCurrentId()
public Service addService(Object id,
Service service)
public Service addService(Object id,
Service service,
Long timeToLive)
public Service getService(Object id)
public void close(Object id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||