Class DefaultByteBufferFactory

java.lang.Object
com.rabbitmq.client.impl.nio.DefaultByteBufferFactory
All Implemented Interfaces:
ByteBufferFactory

public class DefaultByteBufferFactory extends Object implements ByteBufferFactory
Default ByteBufferFactory that creates heap-based ByteBuffers. This behavior can be changed by passing in a custom Function<Integer,ByteBuffer> to the constructor.
Since:
5.5.0
See Also:
  • Constructor Details

    • DefaultByteBufferFactory

      public DefaultByteBufferFactory(Function<Integer,ByteBuffer> allocator)
    • DefaultByteBufferFactory

      public DefaultByteBufferFactory()
  • Method Details