Class HotRodServerConfigurationBuilder
java.lang.Object
org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder>
org.infinispan.server.hotrod.configuration.HotRodServerConfigurationBuilder
- All Implemented Interfaces:
Builder<HotRodServerConfiguration>,Self<HotRodServerConfigurationBuilder>,ProtocolServerConfigurationChildBuilder<HotRodServerConfiguration,,HotRodServerConfigurationBuilder> HotRodServerChildConfigurationBuilder
public class HotRodServerConfigurationBuilder
extends ProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder>
implements Builder<HotRodServerConfiguration>, HotRodServerChildConfigurationBuilder
HotRodServerConfigurationBuilder.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
attributes, ipFilter, ssl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigures authentication for this endpointbuild()Builds a configuration objectbuild(boolean validate) create()Create the configuration beanSets the external address of this node, i.e.proxyPort(int proxyPort) Sets the external port of this node, i.e.read(HotRodServerConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.self()topologyAwaitInitialTransfer(boolean topologyAwaitInitialTransfer) Configures whether to enable waiting for initial state transfer for the topology cache.topologyLockTimeout(long topologyLockTimeout) Configures the lock acquisition timeout for the topology cache.topologyNetworkPrefixOverride(boolean topologyNetworkPrefixOverride) Configures whether to honor or override the network prefix returned for the available interfaces.topologyReplTimeout(long topologyReplTimeout) Configures the replication timeout for the topology cache.topologyStateTransfer(boolean topologyStateTransfer) Deprecated, for removal: This API element is subject to removal in a future version.since 11.0.voidvalidate()Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
adminOperationsHandler, defaultCacheName, host, host, idleTimeout, implicitConnector, implicitConnector, ioThreads, ipFilter, name, name, port, port, recvBufSize, sendBufSize, socketBinding, socketBinding, ssl, startTransport, startTransport, tcpKeepAlive, tcpNoDelay
-
Constructor Details
-
HotRodServerConfigurationBuilder
public HotRodServerConfigurationBuilder()
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<HotRodServerConfiguration>
-
self
- Specified by:
selfin interfaceSelf<HotRodServerConfigurationBuilder>
-
authentication
Description copied from interface:HotRodServerChildConfigurationBuilderConfigures authentication for this endpoint- Specified by:
authenticationin interfaceHotRodServerChildConfigurationBuilder
-
encryption
-
proxyHost
Sets the external address of this node, i.e. the address which clients will connect to- Specified by:
proxyHostin interfaceHotRodServerChildConfigurationBuilder
-
proxyPort
Sets the external port of this node, i.e. the port which clients will connect to- Specified by:
proxyPortin interfaceHotRodServerChildConfigurationBuilder
-
topologyLockTimeout
Configures the lock acquisition timeout for the topology cache. SeeLockingConfigurationBuilder.lockAcquisitionTimeout(long). Defaults to 10 seconds- Specified by:
topologyLockTimeoutin interfaceHotRodServerChildConfigurationBuilder
-
topologyReplTimeout
Configures the replication timeout for the topology cache. SeeClusteringConfigurationBuilder.remoteTimeout(long). Defaults to 10 seconds- Specified by:
topologyReplTimeoutin interfaceHotRodServerChildConfigurationBuilder
-
topologyAwaitInitialTransfer
public HotRodServerConfigurationBuilder topologyAwaitInitialTransfer(boolean topologyAwaitInitialTransfer) Configures whether to enable waiting for initial state transfer for the topology cache. SeeStateTransferConfigurationBuilder.awaitInitialTransfer(boolean)- Specified by:
topologyAwaitInitialTransferin interfaceHotRodServerChildConfigurationBuilder
-
topologyNetworkPrefixOverride
public HotRodServerConfigurationBuilder topologyNetworkPrefixOverride(boolean topologyNetworkPrefixOverride) Description copied from interface:HotRodServerChildConfigurationBuilderConfigures whether to honor or override the network prefix returned for the available interfaces. Defaults to override and to use the IANA private address conventions defined in RFC 1918- Specified by:
topologyNetworkPrefixOverridein interfaceHotRodServerChildConfigurationBuilder
-
topologyStateTransfer
@Deprecated(forRemoval=true) public HotRodServerConfigurationBuilder topologyStateTransfer(boolean topologyStateTransfer) Deprecated, for removal: This API element is subject to removal in a future version.since 11.0. To be removed in 14.0 ISPN-11864 with no direct replacement.Configures whether to enable state transfer for the topology cache. If disabled, aClusterLoaderwill be used to lazily retrieve topology information from the other nodes. Defaults to true.- Specified by:
topologyStateTransferin interfaceHotRodServerChildConfigurationBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<HotRodServerConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<HotRodServerConfiguration>- Overrides:
readin classProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder> - Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<HotRodServerConfiguration>- Overrides:
validatein classProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder>
-
build
-
build
Description copied from interface:ProtocolServerConfigurationChildBuilderBuilds a configuration object- Specified by:
buildin interfaceProtocolServerConfigurationChildBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder>
-