public class SessionClient extends Object
Modifier and Type | Method and Description |
---|---|
SessionCreatedResponse |
createSession(Session value)
Create Session.
|
SessionCreatedResponse |
createSession(Session value,
String dc)
Create Session.
|
void |
destroySession(String sessionId)
Destroys a session.
|
void |
destroySession(String sessionId,
String dc)
Destroys a session.
|
ClientConfig |
getConfig() |
ClientEventHandler |
getEventHandler() |
Optional<SessionInfo> |
getSessionInfo(String sessionId)
Retrieves session info.
|
Optional<SessionInfo> |
getSessionInfo(String sessionId,
String dc)
Retrieves session info.
|
List<SessionInfo> |
listSessions()
Lists all sessions.
|
List<SessionInfo> |
listSessions(String dc)
Lists all sessions.
|
Optional<SessionInfo> |
renewSession(String sessionId) |
Optional<SessionInfo> |
renewSession(String dc,
String sessionId)
Renews a session.
|
protected final Http http
public SessionCreatedResponse createSession(Session value)
value
- The session to create.public SessionCreatedResponse createSession(Session value, String dc)
value
- The session to create.dc
- The data center.public Optional<SessionInfo> renewSession(String sessionId)
public Optional<SessionInfo> renewSession(String dc, String sessionId)
dc
- The datacenter.sessionId
- The session ID to renew.SessionInfo
object for the renewed session.public void destroySession(String sessionId)
sessionId
- The session ID to destroy.public void destroySession(String sessionId, String dc)
sessionId
- The session ID to destroy.dc
- The data center.public Optional<SessionInfo> getSessionInfo(String sessionId)
sessionId
- SessionInfo
.public Optional<SessionInfo> getSessionInfo(String sessionId, String dc)
sessionId
- dc
- Data centerSessionInfo
.public List<SessionInfo> listSessions(String dc)
dc
- The data center.public List<SessionInfo> listSessions()
public ClientConfig getConfig()
public ClientEventHandler getEventHandler()
Copyright © 2018. All rights reserved.