Package org.jboss.as.ejb3.component.pool
Class StrictMaxPoolConfigService
java.lang.Object
org.jboss.as.ejb3.component.pool.StrictMaxPoolConfigService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<StrictMaxPoolConfig>,org.jboss.msc.value.Value<StrictMaxPoolConfig>
public class StrictMaxPoolConfigService
extends Object
implements org.jboss.msc.service.Service<StrictMaxPoolConfig>
User: jpai
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionStrictMaxPoolConfigService(Consumer<StrictMaxPoolConfig> configConsumer, Supplier<Integer> maxThreadsSupplier, String poolName, int declaredMaxSize, StrictMaxPoolConfigService.Derive derive, long timeout, TimeUnit timeUnit) -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()voidvoidsetMaxPoolSize(int newMax) voidsetTimeout(long timeout) voidsetTimeoutUnit(TimeUnit timeUnit) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
StrictMaxPoolConfigService
public StrictMaxPoolConfigService(Consumer<StrictMaxPoolConfig> configConsumer, Supplier<Integer> maxThreadsSupplier, String poolName, int declaredMaxSize, StrictMaxPoolConfigService.Derive derive, long timeout, TimeUnit timeUnit)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) 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 context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<StrictMaxPoolConfig>
-
setMaxPoolSize
public void setMaxPoolSize(int newMax) -
getDerivedSize
public int getDerivedSize() -
setDerive
-
setTimeout
public void setTimeout(long timeout) -
setTimeoutUnit
-