Class CopyData

java.lang.Object
io.netty.util.AbstractReferenceCounted
io.r2dbc.postgresql.message.backend.CopyData
All Implemented Interfaces:
io.netty.util.ReferenceCounted, BackendMessage

public final class CopyData extends io.netty.util.AbstractReferenceCounted implements BackendMessage
The CopyData message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CopyData(io.netty.buffer.ByteBuf data)
    Create a new message.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    boolean
     
    io.netty.buffer.ByteBuf
    Returns data that forms part of a COPY data stream.
    int
     
     
    touch(Object hint)
     

    Methods inherited from class io.netty.util.AbstractReferenceCounted

    refCnt, release, release, retain, retain, setRefCnt, touch

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CopyData

      public CopyData(io.netty.buffer.ByteBuf data)
      Create a new message.
      Parameters:
      data - data that forms part of a COPY data stream. Always corresponds to a single data row.
      Throws:
      IllegalArgumentException - if data is null
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getData

      public io.netty.buffer.ByteBuf getData()
      Returns data that forms part of a COPY data stream. Always corresponds to a single data row.
      Returns:
      data that forms part of a COPY data stream.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • deallocate

      protected void deallocate()
      Specified by:
      deallocate in class io.netty.util.AbstractReferenceCounted
    • touch

      public CopyData touch(Object hint)
      Specified by:
      touch in interface io.netty.util.ReferenceCounted