public class StrictMaxPoolConfigService extends Object implements org.jboss.msc.service.Service<PoolConfig>
Modifier and Type | Class and Description |
---|---|
static class |
StrictMaxPoolConfigService.Derive |
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
DEFAULT_ENTITY_POOL_CONFIG_SERVICE_NAME |
static org.jboss.msc.service.ServiceName |
DEFAULT_MDB_POOL_CONFIG_SERVICE_NAME |
static org.jboss.msc.service.ServiceName |
DEFAULT_SLSB_POOL_CONFIG_SERVICE_NAME |
static org.jboss.msc.service.ServiceName |
EJB_POOL_CONFIG_BASE_SERVICE_NAME |
Constructor and Description |
---|
StrictMaxPoolConfigService(String poolName,
int declaredMaxSize,
StrictMaxPoolConfigService.Derive derive,
long timeout,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
org.jboss.msc.inject.Injector<Integer> |
getMaxThreadsInjector() |
PoolConfig |
getValue() |
void |
setDerive(StrictMaxPoolConfigService.Derive derive) |
void |
setMaxPoolSize(int newMax) |
void |
setTimeout(long timeout) |
void |
setTimeoutUnit(TimeUnit timeUnit) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final org.jboss.msc.service.ServiceName EJB_POOL_CONFIG_BASE_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName DEFAULT_SLSB_POOL_CONFIG_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName DEFAULT_MDB_POOL_CONFIG_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName DEFAULT_ENTITY_POOL_CONFIG_SERVICE_NAME
public StrictMaxPoolConfigService(String poolName, int declaredMaxSize, StrictMaxPoolConfigService.Derive derive, long timeout, TimeUnit timeUnit)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<PoolConfig>
org.jboss.msc.service.StartException
public void setMaxPoolSize(int newMax)
public void setDerive(StrictMaxPoolConfigService.Derive derive)
public void setTimeout(long timeout)
public void setTimeoutUnit(TimeUnit timeUnit)
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<PoolConfig>
public PoolConfig getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<PoolConfig>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.inject.Injector<Integer> getMaxThreadsInjector()
Copyright © 2016 JBoss by Red Hat. All rights reserved.