public class BufferPoolService extends Object implements org.jboss.msc.service.Service<org.xnio.Pool<ByteBuffer>>
| Constructor and Description |
|---|
BufferPoolService(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer,
int bufferSize,
int buffersPerSlice,
boolean directBuffers) |
| Modifier and Type | Method and Description |
|---|---|
org.xnio.Pool<ByteBuffer> |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public BufferPoolService(Consumer<org.xnio.Pool<ByteBuffer>> byteBufferConsumer, int bufferSize, int buffersPerSlice, boolean directBuffers)
public void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.Servicepublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic org.xnio.Pool<ByteBuffer> getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<org.xnio.Pool<ByteBuffer>>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.