Class ConnectionKey
java.lang.Object
org.kawanfw.sql.api.server.connectionstore.ConnectionKey
public class ConnectionKey extends Object
Defines a key for the Connection Store that keeps connections in memory.
The connections are identified by the client username and an
unique generated connection Id in order to identify different connections
belonging to the same username.
- Since:
- 1.0
- Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description ConnectionKey(String username, String sessionId, String connectionId)Constructor -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)StringgetConnectionId()Returns the unique connection Id corresponding to this ConnectionKey.StringgetSessionId()Returns the unique session Id corresponding to this ConnectionKey.StringgetUsername()Returns the client username corresponding to this ConnectionKey.inthashCode()StringtoString()
-
Constructor Details
-
ConnectionKey
Constructor- Parameters:
username- the client usernamesessionId- the unique Id per SessionconnectionId- the unique Connection Id per Connection
-
-
Method Details
-
getUsername
Returns the client username corresponding to this ConnectionKey.- Returns:
- the client username corresponding to this ConnectionKey
-
getSessionId
Returns the unique session Id corresponding to this ConnectionKey.- Returns:
- the client unique session Id corresponding to this ConnectionKey
-
getConnectionId
Returns the unique connection Id corresponding to this ConnectionKey.- Returns:
- the client unique connection Id corresponding to this ConnectionKey
-
hashCode
public int hashCode() -
equals
-
toString
-