| org.araneaframework.framework.ManagedServiceContext
ManagedServiceContext | public interface ManagedServiceContext extends Serializable(Code) | | A managed service context provides the means to have more control over
child services. A good example is
org.araneaframework.framework.router.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() .
author: "Toomas Römer" author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
addService | public Service addService(Object id, Service service, Long timeToLive)(Code) | | 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.
When the service is killed or whether it is killed at all is up to the
implementation.
|
close | public void close(Object id)(Code) | | Closes the service under the key id.
|
getCurrentId | public Object getCurrentId()(Code) | | Returns the id of the current service.
|
|
|