ENGINE_BASE_INDEX, ENGINE_VELOCITY, SESSIONID| Constructor and Description |
|---|
SessionImpl(String sessionId,
String mandator,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Cleanup the data map
|
void |
destroy()
Destroys the session
|
org.osgi.framework.BundleContext |
getBundleContext() |
Set<String> |
getKeys()
Get a set of keys of the key-value-pairs.
|
String |
getMandator()
Gets the mandator
|
String |
getSessionId()
Gets the session id
|
long |
getStartTime()
Gets the start time of the session
|
long |
getTimeout()
Gets the timeout
|
Object |
getValue(String key)
Gets a value
|
boolean |
isAlive()
Returns true if the session is not destroyed.
|
boolean |
isValid()
Returns true if the session is not destroyed and not running out of time.
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setValue(String key,
Object value)
Sets a value
|
public String getSessionId()
SessiongetSessionId in interface Sessionpublic String getMandator()
SessiongetMandator in interface Sessionpublic Set<String> getKeys()
Sessionpublic void setValue(String key, Object value)
Sessionpublic void clearData()
Sessionpublic long getStartTime()
SessiongetStartTime in interface Sessionpublic long getTimeout()
SessiongetTimeout in interface Sessionpublic void destroy()
Sessionpublic boolean isValid()
Sessionpublic boolean isAlive()
Sessionpublic org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
bundleContext - the bundleContext to setCopyright © 2015. All rights reserved.