Package org.wildfly.extension.io
Class BufferPoolService
- java.lang.Object
-
- org.wildfly.extension.io.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 Summary
Constructors Constructor Description BufferPoolService(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer, int bufferSize, int buffersPerSlice, boolean directBuffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xnio.Pool<ByteBuffer>getValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
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:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>
-
getValue
public org.xnio.Pool<ByteBuffer> getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.xnio.Pool<ByteBuffer>>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-