public interface Service<S extends Session>
extends org.eclipse.scada.utils.lifecycle.LifecycleAware
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(S session)
Close the provided session
Closing the session includes: unregistering from all items, canceling all
running operations
|
org.eclipse.scada.utils.concurrent.NotifyFuture<S> |
createSession(Properties props,
org.eclipse.scada.sec.callback.CallbackHandler callbackHandler)
Create a new session for further accessing the hive
|
org.eclipse.scada.utils.concurrent.NotifyFuture<S> createSession(Properties props, org.eclipse.scada.sec.callback.CallbackHandler callbackHandler)
props - properties used to create the sessionorg.eclipse.scada.core.UnableToCreateSessionException - in the case the session could not be createdvoid closeSession(S session) throws org.eclipse.scada.core.InvalidSessionException
session - the session to closeorg.eclipse.scada.core.InvalidSessionException - In the case the session is not a valid session