Class BackendKeyData
java.lang.Object
io.r2dbc.postgresql.message.backend.BackendKeyData
- All Implemented Interfaces:
BackendMessage
The BackendKeyData message.
-
Constructor Details
-
BackendKeyData
public BackendKeyData(int processId, byte[] secretKey) Create a new message.- Parameters:
processId- the process ID of this backendsecretKey- the secret key of this backend. Always 4 bytes before protocol version 3.2, variable-length (up to 256 bytes) since 3.2- Throws:
IllegalArgumentException- ifsecretKeyisnull
-
-
Method Details
-
equals
-
getProcessId
public int getProcessId()Returns the process ID of this backend.- Returns:
- the process ID of this backend
-
getSecretKey
public byte[] getSecretKey()Returns the secret key of this backend.- Returns:
- the secret key of this backend
-
hashCode
-
toString
-