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 Constructor Description HotRodServerConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthenticationConfigurationBuilder
authentication()
Configures authentication for this endpointHotRodServerConfiguration
build()
Builds a configuration objectHotRodServerConfiguration
build(boolean validate)
HotRodServerConfiguration
create()
Create the configuration beanEncryptionConfigurationBuilder
encryption()
HotRodServerConfigurationBuilder
proxyHost(String proxyHost)
Sets the external address of this node, i.e.HotRodServerConfigurationBuilder
proxyPort(int proxyPort)
Sets the external port of this node, i.e.HotRodServerConfigurationBuilder
read(HotRodServerConfiguration template)
Reads the configuration from an already created configuration bean into this builder.HotRodServerConfigurationBuilder
self()
HotRodServerConfigurationBuilder
topologyAwaitInitialTransfer(boolean topologyAwaitInitialTransfer)
Configures whether to enable waiting for initial state transfer for the topology cache.HotRodServerConfigurationBuilder
topologyLockTimeout(long topologyLockTimeout)
Configures the lock acquisition timeout for the topology cache.HotRodServerConfigurationBuilder
topologyReplTimeout(long topologyReplTimeout)
Configures the replication timeout for the topology cache.HotRodServerConfigurationBuilder
topologyStateTransfer(boolean topologyStateTransfer)
Deprecated.since 11.0.void
validate()
Validate the data in this builder before building the configuration bean-
Methods inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
adminOperationsHandler, defaultCacheName, host, host, idleTimeout, ioThreads, ipFilter, name, name, port, port, recvBufSize, sendBufSize, socketBinding, socketBinding, ssl, startTransport, tcpKeepAlive, tcpNoDelay, workerThreads
-
-
-
-
Method Detail
-
self
public HotRodServerConfigurationBuilder self()
- Specified by:
self
in interfaceSelf<HotRodServerConfigurationBuilder>
-
authentication
public AuthenticationConfigurationBuilder authentication()
Description copied from interface:HotRodServerChildConfigurationBuilder
Configures authentication for this endpoint- Specified by:
authentication
in interfaceHotRodServerChildConfigurationBuilder
-
encryption
public EncryptionConfigurationBuilder encryption()
-
proxyHost
public HotRodServerConfigurationBuilder proxyHost(String proxyHost)
Sets the external address of this node, i.e. the address which clients will connect to- Specified by:
proxyHost
in interfaceHotRodServerChildConfigurationBuilder
-
proxyPort
public HotRodServerConfigurationBuilder proxyPort(int proxyPort)
Sets the external port of this node, i.e. the port which clients will connect to- Specified by:
proxyPort
in interfaceHotRodServerChildConfigurationBuilder
-
topologyLockTimeout
public HotRodServerConfigurationBuilder topologyLockTimeout(long topologyLockTimeout)
Configures the lock acquisition timeout for the topology cache. SeeLockingConfigurationBuilder.lockAcquisitionTimeout(long)
. Defaults to 10 seconds- Specified by:
topologyLockTimeout
in interfaceHotRodServerChildConfigurationBuilder
-
topologyReplTimeout
public HotRodServerConfigurationBuilder topologyReplTimeout(long topologyReplTimeout)
Configures the replication timeout for the topology cache. SeeClusteringConfigurationBuilder.remoteTimeout(long)
. Defaults to 10 seconds- 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
-
topologyStateTransfer
@Deprecated public HotRodServerConfigurationBuilder topologyStateTransfer(boolean topologyStateTransfer)
Deprecated.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
public HotRodServerConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<HotRodServerConfiguration>
- Returns:
-
read
public HotRodServerConfigurationBuilder read(HotRodServerConfiguration template)
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>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
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>
-
build
public HotRodServerConfiguration build(boolean validate)
-
build
public HotRodServerConfiguration build()
Description copied from interface:ProtocolServerConfigurationChildBuilder
Builds a configuration object- Specified by:
build
in interfaceProtocolServerConfigurationChildBuilder<HotRodServerConfiguration,HotRodServerConfigurationBuilder>
-
-