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
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionBufferPoolService(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer, int bufferSize, int buffersPerSlice, boolean directBuffers) -
Method Summary
Modifier and TypeMethodDescriptionorg.xnio.Pool<ByteBuffer>getValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
BufferPoolService
public BufferPoolService(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer, int bufferSize, int buffersPerSlice, boolean directBuffers)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) - Specified by:
startin interfaceorg.jboss.msc.Service
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.xnio.Pool<ByteBuffer>>- Throws:
IllegalStateExceptionIllegalArgumentException
-