public static class ModelControllerClientConfiguration.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ModelControllerClientConfiguration |
build()
Builds the configuration object based on this builder's settings.
|
ModelControllerClientConfiguration.Builder |
setClientBindAddress(String clientBindAddress)
Sets the local address to which the client socket should be bound.
|
ModelControllerClientConfiguration.Builder |
setConnectionTimeout(int connectionTimeout)
Maximum time, in milliseconds, to wait for the connection to be established
|
ModelControllerClientConfiguration.Builder |
setExecutorService(ExecutorService executorService)
Sets the executor service to use for asynchronous tasks.
|
ModelControllerClientConfiguration.Builder |
setHandler(CallbackHandler handler)
Sets the handler for callbacks to obtain authentication information.
|
ModelControllerClientConfiguration.Builder |
setHostName(String hostName)
Sets the remote host name to which the client should connect.
|
ModelControllerClientConfiguration.Builder |
setPort(int port)
Sets the remote port to which the client should connect
|
ModelControllerClientConfiguration.Builder |
setProtocol(String protocol)
Sets the protocol to use for communicating with the remote process.
|
ModelControllerClientConfiguration.Builder |
setSaslOptions(Map<String,String> saslOptions)
Sets the SASL options for the remote connection
|
ModelControllerClientConfiguration.Builder |
setShutdownExecutorOnClose(boolean shutdown)
Sets whether the configuration's
executor
should be shut down when the Closeable.close() method is called. |
ModelControllerClientConfiguration.Builder |
setSslContext(SSLContext sslContext)
Sets the SSL context for the remote connection
|
public ModelControllerClientConfiguration.Builder setHostName(String hostName)
hostName - the host name. Cannot be nullpublic ModelControllerClientConfiguration.Builder setClientBindAddress(String clientBindAddress)
clientBindAddress - the local address, or null to choose one automaticallypublic ModelControllerClientConfiguration.Builder setPort(int port)
port - the portpublic ModelControllerClientConfiguration.Builder setHandler(CallbackHandler handler)
handler - the handler, or null if callbacks are not supported.public ModelControllerClientConfiguration.Builder setSaslOptions(Map<String,String> saslOptions)
saslOptions - the sasl optionspublic ModelControllerClientConfiguration.Builder setSslContext(SSLContext sslContext)
sslContext - the SSL contextpublic ModelControllerClientConfiguration.Builder setProtocol(String protocol)
protocol - the protocol, or null if a default protocol for the
specified port should be usedpublic ModelControllerClientConfiguration.Builder setConnectionTimeout(int connectionTimeout)
connectionTimeout - the timeoutpublic ModelControllerClientConfiguration.Builder setExecutorService(ExecutorService executorService)
executorService - the executor. May be nullpublic ModelControllerClientConfiguration.Builder setShutdownExecutorOnClose(boolean shutdown)
executor
should be shut down when the Closeable.close() method is called. If not set the behavior
depends on whether an executor was provided to setExecutorService(ExecutorService).
If yes, then the executor will not be shut down; if no, then the default executor will be
shut down.shutdown - true if the executor should be shut down in the close method.public ModelControllerClientConfiguration build()
Copyright © 2016 JBoss by Red Hat. All rights reserved.