Class BookieProtocol.ReadResponse

  • All Implemented Interfaces:
    io.netty.util.ReferenceCounted
    Enclosing interface:
    BookieProtocol

    public static class BookieProtocol.ReadResponse
    extends BookieProtocol.Response
    implements io.netty.util.ReferenceCounted
    A request that reads data.
    • Field Detail

      • data

        final io.netty.buffer.ByteBuf data
    • Constructor Detail

      • ReadResponse

        ReadResponse​(byte protocolVersion,
                     int errorCode,
                     long ledgerId,
                     long entryId)
      • ReadResponse

        ReadResponse​(byte protocolVersion,
                     int errorCode,
                     long ledgerId,
                     long entryId,
                     io.netty.buffer.ByteBuf data)
    • Method Detail

      • hasData

        boolean hasData()
      • getData

        io.netty.buffer.ByteBuf getData()
      • refCnt

        public int refCnt()
        Specified by:
        refCnt in interface io.netty.util.ReferenceCounted
      • retain

        public io.netty.util.ReferenceCounted retain()
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • retain

        public io.netty.util.ReferenceCounted retain​(int increment)
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • touch

        public io.netty.util.ReferenceCounted touch()
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • touch

        public io.netty.util.ReferenceCounted touch​(java.lang.Object hint)
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • release

        public boolean release()
        Specified by:
        release in interface io.netty.util.ReferenceCounted
        Overrides:
        release in class BookieProtocol.Response
      • release

        public boolean release​(int decrement)
        Specified by:
        release in interface io.netty.util.ReferenceCounted