Class CancelRequest
java.lang.Object
io.r2dbc.postgresql.message.frontend.CancelRequest
- All Implemented Interfaces:
FrontendMessage
The CancelRequest message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface FrontendMessage
dispose
-
Constructor Details
-
CancelRequest
public CancelRequest(int processId, byte[] secretKey) Create a new message.- Parameters:
processId- the process id of the target backendsecretKey- the secret key for the target backend. Always 4 bytes before protocol version 3.2, variable-length (up to 256 bytes) since 3.2- Throws:
IllegalArgumentException- ifsecretKeyisnull
-
-
Method Details
-
encode
Description copied from interface:FrontendMessageEncode a message into aByteBuf.- Specified by:
encodein interfaceFrontendMessage- Parameters:
byteBufAllocator- the byteBufAllocator to use to get aByteBufto write into- Returns:
- a
Publisherthat produces theByteBufcontaining the encoded message
-
equals
-
hashCode
-
toString
-