|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.service.ServiceContainer.Factory
public static class ServiceContainer.Factory
The factory class for service containers.
Method Summary | |
---|---|
static ServiceContainer |
create()
Create a new instance with a generated name and default thread pool. |
static ServiceContainer |
create(int coreSize,
long keepAliveTime,
TimeUnit keepAliveTimeUnit)
Create a new instance with a generated name and specified initial thread pool settings. |
static ServiceContainer |
create(String name)
Create a new instance with a given name and default thread pool. |
static ServiceContainer |
create(String name,
int coreSize,
long keepAliveTime,
TimeUnit keepAliveTimeUnit)
Create a new instance with a given name and specified initial thread pool settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceContainer create()
public static ServiceContainer create(String name)
name
- the name of the new container
public static ServiceContainer create(int coreSize, long keepAliveTime, TimeUnit keepAliveTimeUnit)
coreSize
- the core pool size (must be greater than zero)keepAliveTime
- the amount of time that non-core threads should linger without taskskeepAliveTimeUnit
- the time unit for keepAliveTime
public static ServiceContainer create(String name, int coreSize, long keepAliveTime, TimeUnit keepAliveTimeUnit)
name
- the name of the new containercoreSize
- the core pool size (must be greater than zero)keepAliveTime
- the amount of time that non-core threads should linger without taskskeepAliveTimeUnit
- the time unit for keepAliveTime
|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |