public class ServerConfigurationBuilder extends AbstractConfigurationChildBuilder implements Builder<ServerConfiguration>
Modifier and Type | Method and Description |
---|---|
ServerConfiguration |
create()
Create the configuration bean
|
ServerConfigurationBuilder |
host(String host) |
ServerConfigurationBuilder |
port(int port) |
ServerConfigurationBuilder |
read(ServerConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, build, classLoader, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, pingOnStartup, protocolVersion, socketTimeout, ssl, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, withProperties
public ServerConfigurationBuilder host(String host)
public ServerConfigurationBuilder port(int port)
public void validate()
Builder
validate
in interface Builder<ServerConfiguration>
public ServerConfiguration create()
Builder
create
in interface Builder<ServerConfiguration>
public ServerConfigurationBuilder read(ServerConfiguration template)
Builder
read
in interface Builder<ServerConfiguration>
template
- the configuration from which to "clone" this config if needed.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.