Package org.apache.hadoop.hbase.ipc
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 inherited from interface org.apache.hbase.thirdparty.io.netty.buffer.ByteBufAllocator
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
-
Constructor Details
-
SimpleByteBufAllocator
public SimpleByteBufAllocator()
-
-
Method Details
-
isDirectBufferPooled
- Specified by:
isDirectBufferPooled
in interfaceorg.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 classorg.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 classorg.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
-