Class AbstractProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A> , S extends ProtocolServerConfigurationChildBuilder<T,S,A> , A extends AuthenticationConfiguration>
java.lang.Object
org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder<T,S,A>
- All Implemented Interfaces:
Self<S>,ProtocolServerConfigurationChildBuilder<T,S, A>
- Direct Known Subclasses:
IpFilterConfigurationBuilder,RespAuthenticationConfigurationBuilder,RestAuthenticationConfigurationBuilder,SslConfigurationBuilder
public abstract class AbstractProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T,S,A>, A extends AuthenticationConfiguration>
extends Object
implements ProtocolServerConfigurationChildBuilder<T,S,A>
Helper
- Since:
- 9.1
- Author:
- Tristan Tarrant
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractProtocolServerConfigurationChildBuilder(ProtocolServerConfigurationChildBuilder<T, S, A> builder) -
Method Summary
Modifier and TypeMethodDescriptionIndicates theAdminOperationsHandlerwhich will be used to handle admin operationsbuild()Builds a configuration objectdefaultCacheName(String defaultCacheName) Specifies the cache to use as a default cache for the protocolSpecifies the host or IP address on which this server will listenidleTimeout(int idleTimeout) Specifies the maximum time that connections from client will be kept open without activityimplicitConnector(boolean implicitConnector) Indicates whether this connector was added implicitlyioThreads(int ioThreads) Sets the number of I/O threadsipFilter()Configures the IP filter rulesmaxContentLength(String maxContentLength) The maximum size a request can be, if exceeded the request will be rejected and possibly forcibly close the socketSpecifies a custom name for this protocol server in order to easily distinguish it from others of the same type on the same server, e.g. via JMX.port(int port) Specifies the port on which this server will listenrecvBufSize(int recvBufSize) Sets the size of the receive buffersendBufSize(int sendBufSize) Sets the size of the send buffersocketBinding(String name) Indicates the name of socket binding which will be usedssl()Configures SSLstartTransport(boolean startTransport) Indicates whether transport implementation should or should not be started.tcpKeepAlive(boolean tcpKeepAlive) Affects TCP KEEPALIVE on the TCP stack.tcpNoDelay(boolean tcpNoDelay) Affects TCP NODELAY on the TCP stack.
-
Field Details
-
builder
protected final ProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, builderS, A>, A extends AuthenticationConfiguration>
-
-
Constructor Details
-
AbstractProtocolServerConfigurationChildBuilder
protected AbstractProtocolServerConfigurationChildBuilder(ProtocolServerConfigurationChildBuilder<T, S, A> builder)
-
-
Method Details
-
defaultCacheName
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the cache to use as a default cache for the protocol- Specified by:
defaultCacheNamein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
name
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies a custom name for this protocol server in order to easily distinguish it from others of the same type on the same server, e.g. via JMX. Defaults to the empty string. The name should be the same across the cluster.- Specified by:
namein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
host
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the host or IP address on which this server will listen- Specified by:
hostin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
port
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the port on which this server will listen- Specified by:
portin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
idleTimeout
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the maximum time that connections from client will be kept open without activity- Specified by:
idleTimeoutin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
tcpNoDelay
Description copied from interface:ProtocolServerConfigurationChildBuilderAffects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelayin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
tcpKeepAlive
Description copied from interface:ProtocolServerConfigurationChildBuilderAffects TCP KEEPALIVE on the TCP stack. Defaults to disabled- Specified by:
tcpKeepAlivein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
recvBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the size of the receive buffer- Specified by:
recvBufSizein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
sendBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the size of the send buffer- Specified by:
sendBufSizein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
authentication
- Specified by:
authenticationin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ssl
Description copied from interface:ProtocolServerConfigurationChildBuilderConfigures SSL- Specified by:
sslin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ioThreads
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the number of I/O threads- Specified by:
ioThreadsin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
startTransport
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates whether transport implementation should or should not be started.- Specified by:
startTransportin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
adminOperationsHandler
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates theAdminOperationsHandlerwhich will be used to handle admin operations- Specified by:
adminOperationsHandlerin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
socketBinding
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates the name of socket binding which will be used- Specified by:
socketBindingin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ipFilter
Description copied from interface:ProtocolServerConfigurationChildBuilderConfigures the IP filter rules- Specified by:
ipFilterin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
implicitConnector
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates whether this connector was added implicitly- Specified by:
implicitConnectorin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
maxContentLength
Description copied from interface:ProtocolServerConfigurationChildBuilderThe maximum size a request can be, if exceeded the request will be rejected and possibly forcibly close the socket- Specified by:
maxContentLengthin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration> - Parameters:
maxContentLength- the maximum size a request can be, valid values are handled byByteQuantity- Returns:
- this builder
-
build
Description copied from interface:ProtocolServerConfigurationChildBuilderBuilds a configuration object- Specified by:
buildin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-