Interface ByteBufAllocatorWithOomHandler

  • All Superinterfaces:
    io.netty.buffer.ByteBufAllocator
    All Known Implementing Classes:
    ByteBufAllocatorImpl

    public interface ByteBufAllocatorWithOomHandler
    extends io.netty.buffer.ByteBufAllocator
    A ByteBufAllocatr interface with a OOM handler.
    • Field Summary

      • Fields inherited from interface io.netty.buffer.ByteBufAllocator

        DEFAULT
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setOomHandler​(java.util.function.Consumer<java.lang.OutOfMemoryError> handler)  
      • Methods inherited from interface io.netty.buffer.ByteBufAllocator

        buffer, buffer, buffer, calculateNewCapacity, compositeBuffer, compositeBuffer, compositeDirectBuffer, compositeDirectBuffer, compositeHeapBuffer, compositeHeapBuffer, directBuffer, directBuffer, directBuffer, heapBuffer, heapBuffer, heapBuffer, ioBuffer, ioBuffer, ioBuffer, isDirectBufferPooled
    • Method Detail

      • setOomHandler

        void setOomHandler​(java.util.function.Consumer<java.lang.OutOfMemoryError> handler)