Class SimpleByteBufAllocator

java.lang.Object
org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
org.apache.hadoop.hbase.ipc.SimpleByteBufAllocator
All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator

public class SimpleByteBufAllocator extends org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator implements org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator
A custom byte buf allocator for TestNettyRpcServer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final org.slf4j.Logger
     

    Fields inherited from interface org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf
    newDirectBuffer(int initialCapacity, int maxCapacity)
     
    protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf
    newHeapBuffer(int initialCapacity, int maxCapacity)
     

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator

    buffer, buffer, buffer, calculateNewCapacity, compositeBuffer, compositeBuffer, compositeDirectBuffer, compositeDirectBuffer, compositeHeapBuffer, compositeHeapBuffer, directBuffer, directBuffer, directBuffer, heapBuffer, heapBuffer, heapBuffer, ioBuffer, ioBuffer, ioBuffer, toLeakAwareBuffer, toLeakAwareBuffer, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator

    buffer, buffer, buffer, calculateNewCapacity, compositeBuffer, compositeBuffer, compositeDirectBuffer, compositeDirectBuffer, compositeHeapBuffer, compositeHeapBuffer, directBuffer, directBuffer, directBuffer, heapBuffer, heapBuffer, heapBuffer, ioBuffer, ioBuffer, ioBuffer
  • Field Details

    • LOG

      static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • isDirectBufferPooled

      public boolean isDirectBufferPooled()
      Specified by:
      isDirectBufferPooled in interface org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator
    • newHeapBuffer

      protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity)
      Specified by:
      newHeapBuffer in class org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
    • newDirectBuffer

      protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity)
      Specified by:
      newDirectBuffer in class org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator