public class LifecycleConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AGENT_SPAWNING_COUNT_PER_THREAD_NAME
Name of property that indicates the maximal number of agents that could be spawn by a single
thread of the lifecycle service.
|
static int |
AGENT_SPAWNING_COUNT_PER_THREAD_VALUE
Indicates the maximal number of agents that could be spawn by a single
thread of the lifecycle service.
|
static String |
CREATE_AGENT_WITH_INJECTOR_NAME
Name of property that indicates if agents must be created by an injector.
|
static boolean |
CREATE_AGENT_WITH_INJECTOR_VALUE
Indicates if the agents must be created with an injector by default.
|
static String |
ENABLE_INJECTABLE_ANNOTATION_NAME
Name of property that indicates if the support of the
@Injectable is enable
when the creation of the agents is not injection based. |
static boolean |
ENABLE_INJECTABLE_ANNOTATION_VALUE
Indicates if the support of the
@Injectable is enable
when the creation of the agents is not injection based. |
static String |
EVENT_BUS_TYPE_NAME
Name of property that indicates the type of the event bus to create for each agent.
|
static EventBusType |
EVENT_BUS_TYPE_VALUE
Indicates the type of event bus to create for each agent.
|
static String |
PREFIX
Prefix for the configuration entries of the lifecycle configuration.
|
Modifier and Type | Method and Description |
---|---|
int |
getAgentSpawningCountPerThread() |
EventBusType |
getEventBusType() |
boolean |
isCreateAgentsWithInjector() |
boolean |
isEnableInjectableSupport() |
void |
setAgentSpawningCountPerThread(number : int)
Change the maximal number of agents that could be spawn by a single
thread of the lifecycle service.
|
void |
setCreateAgentsWithInjector(useInjector : boolean)
Change the flag that indicates if the agents must be created with injector, or not.
|
void |
setEnableInjectableSupport(enableInjectable : boolean)
Change the flag that indicates the
@Injectable annotation is supported
when the agents are not created with an injector. |
void |
setEventBusType(type : EventBusType)
Change the type of event bus to be created for each agent.
|
public static val
PREFIX : String
LifecycleConfig
public static val
CREATE_AGENT_WITH_INJECTOR_NAME : String
LifecycleConfig
public static val
CREATE_AGENT_WITH_INJECTOR_VALUE : boolean
LifecycleConfig
public static val
ENABLE_INJECTABLE_ANNOTATION_NAME : String
LifecycleConfig
@Injectable
is enable
when the creation of the agents is not injection based.LifecycleConfig.ENABLE_INJECTABLE_ANNOTATION_VALUE
,
Constant Field Valuespublic static val
ENABLE_INJECTABLE_ANNOTATION_VALUE : boolean
LifecycleConfig
@Injectable
is enable
when the creation of the agents is not injection based.LifecycleConfig.ENABLE_INJECTABLE_ANNOTATION_NAME
,
Constant Field Valuespublic static val
AGENT_SPAWNING_COUNT_PER_THREAD_NAME : String
LifecycleConfig
LifecycleConfig.AGENT_SPAWNING_COUNT_PER_THREAD_VALUE
,
Constant Field Valuespublic static val
AGENT_SPAWNING_COUNT_PER_THREAD_VALUE : int
LifecycleConfig
LifecycleConfig.AGENT_SPAWNING_COUNT_PER_THREAD_NAME
,
Constant Field Valuespublic static val
EVENT_BUS_TYPE_NAME : String
LifecycleConfig
LifecycleConfig.EVENT_BUS_TYPE_VALUE
,
Constant Field Valuespublic static val
EVENT_BUS_TYPE_VALUE : EventBusType
LifecycleConfig
LifecycleConfig.EVENT_BUS_TYPE_NAME
public def
setEventBusType(type : EventBusType) : void
LifecycleConfig
type
- the type of event bus.public def
setCreateAgentsWithInjector(useInjector : boolean) : void
LifecycleConfig
useInjector
- is true
if the agents should be created by an injector.public def
setEnableInjectableSupport(enableInjectable : boolean) : void
LifecycleConfig
@Injectable
annotation is supported
when the agents are not created with an injector.enableInjectable
- is true
if agents ar injected if their are annoted with @Injectable
.public def
setAgentSpawningCountPerThread(number : int) : void
LifecycleConfig
number
- is the number of agent to be spawned.@Pure
public def
isCreateAgentsWithInjector() : boolean
@Pure
public def
isEnableInjectableSupport() : boolean
@Pure
public def
getAgentSpawningCountPerThread() : int
@Pure
public def
getEventBusType() : EventBusType
Copyright © 2021 the original authors or authors.