Class BufferPoolService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>, org.jboss.msc.value.Value<org.xnio.Pool<ByteBuffer>>

    public class BufferPoolService
    extends Object
    implements org.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>
    Author:
    Tomaz Cerar (c) 2013 Red Hat Inc., Richard Opalka, Flavia Rainone
    • Constructor Detail

      • BufferPoolService

        public BufferPoolService​(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer,
                                 int bufferSize,
                                 int buffersPerSlice,
                                 boolean directBuffers)
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>