Class CopyData
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.r2dbc.postgresql.message.frontend.CopyData
- All Implemented Interfaces:
io.netty.util.ReferenceCounted, FrontendMessage
public final class CopyData
extends io.netty.util.AbstractReferenceCounted
implements FrontendMessage
The CopyData message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, retain, retain, setRefCnt, touch
-
Constructor Details
-
CopyData
public CopyData(io.netty.buffer.ByteBuf data) Create a new message.- Parameters:
data- data that forms part of aCOPYdata stream- Throws:
IllegalArgumentException- ifdataisnull
-
-
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
-
deallocate
protected void deallocate()- Specified by:
deallocatein classio.netty.util.AbstractReferenceCounted
-
touch
-
hashCode
-
toString
-