Class NegotiateProtocolVersion
java.lang.Object
io.r2dbc.postgresql.message.backend.NegotiateProtocolVersion
- All Implemented Interfaces:
BackendMessage
The NegotiateProtocolVersion message. Sent by the server when the requested minor protocol version is newer than the server supports, or when the client requested unsupported protocol options.
- Since:
- 1.1.2
-
Constructor Summary
ConstructorsConstructorDescriptionNegotiateProtocolVersion(int protocolMinorVersion, List<String> unsupportedOptions) Create a new message. -
Method Summary
-
Constructor Details
-
NegotiateProtocolVersion
Create a new message.- Parameters:
protocolMinorVersion- the newest minor protocol version supported by the server for the major protocol version requested by the clientunsupportedOptions- the protocol options that were not recognized by the server- Throws:
IllegalArgumentException- ifunsupportedOptionsisnull
-
-
Method Details
-
equals
-
getProtocolMinorVersion
public int getProtocolMinorVersion()Returns the newest minor protocol version supported by the server for the major protocol version requested by the client.- Returns:
- the newest minor protocol version supported by the server
-
getUnsupportedOptions
-
hashCode
-
toString
-