Build a connect request to create a new session
Build a connect request to create a new session
a customized ConnectResponse
Build a reconnect request depending if RO mode is allowed by user, and if current session has a fake session ID ( never connected to RW server)
Build a reconnect request depending if RO mode is allowed by user, and if current session has a fake session ID ( never connected to RW server)
an optional timeout for the session
a customized ConnectResponse
To close current session and clean session manager
Used to create a fresh new Session from the connect response.
Used to create a fresh new Session from the connect response. Use cases : connection, reconnection with new Session
connect Response
connect request session timeout
function to send ping request
Unit
Here we are parsing the header's error field and changing the connection state if required then the ZXID is updated.
Here we are parsing the header's error field and changing the connection state if required then the ZXID is updated.
request's header
Here we are parsing the watchEvent's state field and changing the connection state if required
Here we are parsing the watchEvent's state field and changing the connection state if required
a request header
Used to reconnect with the same session Ids Use cases : session reconnection after connection loss, reconnection to RW mode server.
Used to reconnect with the same session Ids Use cases : session reconnection after connection loss, reconnection to RW mode server.
connect response
function to send ping request
Try[Unit]
Session manager is used to manage sessions during client life