Class HotRodServerConfigurationBuilder
java.lang.Object
org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder,SaslAuthenticationConfiguration>
org.infinispan.server.hotrod.configuration.HotRodServerConfigurationBuilder
- All Implemented Interfaces:
Builder<HotRodServerConfiguration>
,Self<HotRodServerConfigurationBuilder>
,ProtocolServerConfigurationChildBuilder<HotRodServerConfiguration,
,HotRodServerConfigurationBuilder, SaslAuthenticationConfiguration> HotRodServerChildConfigurationBuilder
public class HotRodServerConfigurationBuilder
extends ProtocolServerConfigurationBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder,SaslAuthenticationConfiguration>
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
-
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.topologyLockTimeout
(String topologyLockTimeout) 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.topologyReplTimeout
(String topologyReplTimeout) topologyStateTransfer
(boolean topologyStateTransfer) Deprecated, for removal: This API element is subject to removal in a future version.since 11.0.void
validate()
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:
attributes
in interfaceBuilder<HotRodServerConfiguration>
-
self
- Specified by:
self
in interfaceSelf<HotRodServerConfigurationBuilder>
-
authentication
Description copied from interface:HotRodServerChildConfigurationBuilder
Configures authentication for this endpoint- Specified by:
authentication
in interfaceHotRodServerChildConfigurationBuilder
- Specified by:
authentication
in interfaceProtocolServerConfigurationChildBuilder<HotRodServerConfiguration,
HotRodServerConfigurationBuilder, SaslAuthenticationConfiguration>
-
encryption
-
proxyHost
Sets the external address of this node, i.e. the address which clients will connect to- Specified by:
proxyHost
in interfaceHotRodServerChildConfigurationBuilder
-
proxyPort
Sets the external port of this node, i.e. the port which clients will connect to- Specified by:
proxyPort
in interfaceHotRodServerChildConfigurationBuilder
-
topologyLockTimeout
Configures the lock acquisition timeout for the topology cache. SeeLockingConfigurationBuilder.lockAcquisitionTimeout(long)
. Defaults to 10 seconds- Specified by:
topologyLockTimeout
in interfaceHotRodServerChildConfigurationBuilder
-
topologyLockTimeout
- Specified by:
topologyLockTimeout
in interfaceHotRodServerChildConfigurationBuilder
-
topologyReplTimeout
Configures the replication timeout for the topology cache. SeeClusteringConfigurationBuilder.remoteTimeout(long)
. Defaults to 10 seconds- Specified by:
topologyReplTimeout
in interfaceHotRodServerChildConfigurationBuilder
-
topologyReplTimeout
- Specified by:
topologyReplTimeout
in 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:
topologyAwaitInitialTransfer
in interfaceHotRodServerChildConfigurationBuilder
-
topologyNetworkPrefixOverride
public HotRodServerConfigurationBuilder topologyNetworkPrefixOverride(boolean topologyNetworkPrefixOverride) Description copied from interface:HotRodServerChildConfigurationBuilder
Configures 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:
topologyNetworkPrefixOverride
in interfaceHotRodServerChildConfigurationBuilder
-
topologyStateTransfer
@Deprecated(forRemoval=true, since="11.0") 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, aClusterLoader
will be used to lazily retrieve topology information from the other nodes. Defaults to true.- Specified by:
topologyStateTransfer
in interfaceHotRodServerChildConfigurationBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<HotRodServerConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<HotRodServerConfiguration>
- Overrides:
read
in classProtocolServerConfigurationBuilder<HotRodServerConfiguration,
HotRodServerConfigurationBuilder, SaslAuthenticationConfiguration> - 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<HotRodServerConfiguration>
- Overrides:
validate
in classProtocolServerConfigurationBuilder<HotRodServerConfiguration,
HotRodServerConfigurationBuilder, SaslAuthenticationConfiguration>
-
build
-
build
Description copied from interface:ProtocolServerConfigurationChildBuilder
Builds a configuration object
-