Package org.wildfly.extension.undertow
Class BufferCacheService
- java.lang.Object
-
- org.wildfly.extension.undertow.BufferCacheService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<io.undertow.server.handlers.cache.DirectBufferCache>,org.jboss.msc.value.Value<io.undertow.server.handlers.cache.DirectBufferCache>
public class BufferCacheService extends Object implements org.jboss.msc.service.Service<io.undertow.server.handlers.cache.DirectBufferCache>
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description BufferCacheService(int bufferSize, int buffersPerRegion, int maxRegions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.server.handlers.cache.DirectBufferCachegetValue()voidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext stopContext)
-
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public io.undertow.server.handlers.cache.DirectBufferCache getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<io.undertow.server.handlers.cache.DirectBufferCache>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-