public final class CopyData extends io.netty.util.AbstractReferenceCounted implements FrontendMessage
FrontendMessage.DirectEncoder
Constructor and Description |
---|
CopyData(io.netty.buffer.ByteBuf data)
Create a new message.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deallocate() |
Publisher<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
Encode a message into a
ByteBuf . |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
CopyData |
touch(Object hint) |
public CopyData(io.netty.buffer.ByteBuf data)
data
- data that forms part of a COPY
data streamIllegalArgumentException
- if data
is null
public Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
FrontendMessage
ByteBuf
.encode
in interface FrontendMessage
byteBufAllocator
- the byteBufAllocator to use to get a ByteBuf
to write intoPublisher
that produces the ByteBuf
containing the encoded messageprotected void deallocate()
deallocate
in class io.netty.util.AbstractReferenceCounted
public CopyData touch(Object hint)
touch
in interface io.netty.util.ReferenceCounted
Copyright © 2021. All rights reserved.