Class BlinkSession<M>
java.lang.Object
com.kosdev.kos.commons.core.service.blink.BlinkSession<M>
- Direct Known Subclasses:
BinaryMsgSession
Session that sits on top of a connection and implements a particular protocol
as well as the api used to interact with the protocol.
- Since:
- 1
- Version:
- 1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetIdentity(Class<T> clazz) Convert identity data to the specified type.Return the remote address of the connection.
-
Constructor Details
-
BlinkSession
public BlinkSession()
-
-
Method Details
-
getIdentity
Convert identity data to the specified type. Useful if the identity json payload contains additional data for a given interface.- Parameters:
clazz- the class to convert json data to- Returns:
- instance of identity data
- Throws:
Exception- Since:
- 1
-
getRemoteAddr
Return the remote address of the connection.- Since:
- 1
-