public interface VerticleConfig extends ComponentConfig<VerticleConfig>
ComponentConfig.Type| Modifier and Type | Field and Description |
|---|---|
static String |
VERTICLE_IS_MULTI_THREADED
multi-threaded is a boolean indicating whether a worker verticle is
multi-threaded. |
static String |
VERTICLE_IS_WORKER
worker is a boolean indicating whether this verticle should be deployed
as a worker verticle. |
static String |
VERTICLE_MAIN
main is a string indicating the verticle main. |
COMPONENT_CONFIG, COMPONENT_GROUP, COMPONENT_HOOKS, COMPONENT_NAME, COMPONENT_NUM_INSTANCES, COMPONENT_TYPE, COMPONENT_TYPE_MODULE, COMPONENT_TYPE_VERTICLE| Modifier and Type | Method and Description |
|---|---|
String |
getMain()
Gets the verticle main.
|
boolean |
isMultiThreaded()
Returns a boolean indicating whether the verticle is a worker and is multi-threaded.
|
boolean |
isWorker()
Returns a boolean indicating whether the verticle is a worker.
|
VerticleConfig |
setMain(String main)
Sets the verticle main.
|
VerticleConfig |
setMultiThreaded(boolean isMultiThreaded)
Sets the verticle multi-threaded option.
|
VerticleConfig |
setWorker(boolean isWorker)
Sets the verticle worker option.
|
addHook, getConfig, getGroup, getHooks, getInstances, getName, getType, setConfig, setGroup, setInstances, setNamestatic final String VERTICLE_MAIN
main is a string indicating the verticle main. This field is required
for all verticle components.static final String VERTICLE_IS_WORKER
worker is a boolean indicating whether this verticle should be deployed
as a worker verticle. Defaults to falsestatic final String VERTICLE_IS_MULTI_THREADED
multi-threaded is a boolean indicating whether a worker verticle is
multi-threaded. This option only applies to verticles where worker is
true. Defaults to falseVerticleConfig setMain(String main)
main - The verticle main.String getMain()
VerticleConfig setWorker(boolean isWorker)
isWorker - Indicates whether the verticle should be deployed as a worker.boolean isWorker()
VerticleConfig setMultiThreaded(boolean isMultiThreaded)
isMultiThreaded - Indicates whether the worker verticle is multi-threaded.boolean isMultiThreaded()
false will be returned.Copyright © 2013-2014. All Rights Reserved.