@ComponentProfile(summary="Exposes many of the Vertx engine options.",
tag="clustering,vertx")
public class VertxProperties
extends java.lang.Object
This class exposes many of the internal Vertx engine properties.
You may specify your own values for each or simply leave Vertx to create sensible defaults.
In the adapter configuration file this class is aliased as vertx-properties which is the preferred alternative to the fully qualified classname when building your configuration.
| Constructor and Description |
|---|
VertxProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getBlockedThreadCheckInterval() |
java.lang.Integer |
getEventLoopPoolSize() |
java.lang.Boolean |
getHaEnabled() |
java.lang.String |
getHaGroup() |
java.lang.Integer |
getInternalBlockingPoolSize() |
java.lang.Long |
getMaxEventLoopExecuteTime() |
java.lang.Long |
getMaxWorkerExecuteTime() |
java.lang.Boolean |
getPreferNativeTransport() |
java.lang.Integer |
getQuorumSize() |
java.lang.Long |
getWarningExceptionTime() |
java.lang.Integer |
getWorkerPoolSize() |
void |
setBlockedThreadCheckInterval(java.lang.Long blockedThreadCheckInterval)
Sets the value of blocked thread check period, in
blockedThreadCheckIntervalUnit. |
void |
setEventLoopPoolSize(java.lang.Integer eventLoopPoolSize)
Set the number of event loop threads to be used by the Vert.x instance.
|
void |
setHaEnabled(java.lang.Boolean haEnabled)
Set whether HA will be enabled on the Vert.x instance.
|
void |
setHaGroup(java.lang.String haGroup)
Set the HA group to be used when HA is enabled.
|
void |
setInternalBlockingPoolSize(java.lang.Integer internalBlockingPoolSize)
Set the value of internal blocking pool size
|
void |
setMaxEventLoopExecuteTime(java.lang.Long maxEventLoopExecuteTime)
Sets the value of max event loop execute time, in
maxEventLoopExecuteTimeUnit. |
void |
setMaxWorkerExecuteTime(java.lang.Long maxWorkerExecuteTime)
Sets the value of max worker execute time, in
maxWorkerExecuteTimeUnit. |
void |
setPreferNativeTransport(java.lang.Boolean preferNativeTransport)
Set wether to prefer the native transport to the JDK transport.
|
void |
setQuorumSize(java.lang.Integer quorumSize)
Set the quorum size to be used when HA is enabled.
|
void |
setWarningExceptionTime(java.lang.Long warningExceptionTime)
Set the threshold value above this, the blocked warning contains a stack trace.
|
void |
setWorkerPoolSize(java.lang.Integer workerPoolSize)
Set the maximum number of worker threads to be used by the Vert.x instance.
|
public java.lang.Integer getEventLoopPoolSize()
public void setEventLoopPoolSize(java.lang.Integer eventLoopPoolSize)
eventLoopPoolSize - the number of threadspublic java.lang.Integer getWorkerPoolSize()
public void setWorkerPoolSize(java.lang.Integer workerPoolSize)
workerPoolSize - the number of threadspublic java.lang.Integer getInternalBlockingPoolSize()
public void setInternalBlockingPoolSize(java.lang.Integer internalBlockingPoolSize)
internalBlockingPoolSize - the maximumn number of threads in the internal blocking poolpublic java.lang.Long getBlockedThreadCheckInterval()
public void setBlockedThreadCheckInterval(java.lang.Long blockedThreadCheckInterval)
blockedThreadCheckIntervalUnit.
The default value of blockedThreadCheckIntervalUnit is TimeUnit.MILLISECONDS
blockedThreadCheckInterval - the value of blocked thread check period, in blockedThreadCheckIntervalUnit.public java.lang.Long getMaxEventLoopExecuteTime()
public void setMaxEventLoopExecuteTime(java.lang.Long maxEventLoopExecuteTime)
maxEventLoopExecuteTimeUnit.
The default value of maxEventLoopExecuteTimeUnitis TimeUnit.NANOSECONDS
maxEventLoopExecuteTime - the value of max event loop execute time, in maxEventLoopExecuteTimeUnit.public java.lang.Long getMaxWorkerExecuteTime()
public void setMaxWorkerExecuteTime(java.lang.Long maxWorkerExecuteTime)
maxWorkerExecuteTimeUnit.
The default value of maxWorkerExecuteTimeUnit is TimeUnit.NANOSECONDS
maxWorkerExecuteTime - the value of max worker execute time, in maxWorkerExecuteTimeUnit.public java.lang.Boolean getHaEnabled()
public void setHaEnabled(java.lang.Boolean haEnabled)
haEnabled - true if enabled, false if not.public java.lang.Integer getQuorumSize()
public void setQuorumSize(java.lang.Integer quorumSize)
quorumSize - the quorum sizepublic java.lang.String getHaGroup()
public void setHaGroup(java.lang.String haGroup)
haGroup - the HA group to usepublic java.lang.Long getWarningExceptionTime()
public void setWarningExceptionTime(java.lang.Long warningExceptionTime)
warningExceptionTimeUnit.
The default value of warningExceptionTimeUnit is TimeUnit.NANOSECONDSwarningExceptionTime - public java.lang.Boolean getPreferNativeTransport()
public void setPreferNativeTransport(java.lang.Boolean preferNativeTransport)
preferNativeTransport - true to prefer the native transport