Class AbstractProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
- java.lang.Object
-
- org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder<T,S>
-
- All Implemented Interfaces:
Self<S>,ProtocolServerConfigurationChildBuilder<T,S>
- Direct Known Subclasses:
AuthenticationConfigurationBuilder,SslConfigurationBuilder
public abstract class AbstractProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>> extends Object implements ProtocolServerConfigurationChildBuilder<T,S>
Helper- Since:
- 9.1
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description protected ProtocolServerConfigurationChildBuilder<T,S>builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractProtocolServerConfigurationChildBuilder(ProtocolServerConfigurationChildBuilder<T,S> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SadminOperationsHandler(org.infinispan.server.core.admin.AdminOperationsHandler handler)Indicates theAdminOperationsHandlerwhich will be used to handle admin operationsTbuild()Builds a configuration objectSdefaultCacheName(String defaultCacheName)Specifies the cache to use as a default cache for the protocolShost(String host)Specifies the host or IP address on which this server will listenSidleTimeout(int idleTimeout)Specifies the maximum time that connections from client will be kept open without activitySioThreads(int ioThreads)Sets the number of I/O threadsSname(String name)Specifies 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.Sport(int port)Specifies the port on which this server will listenSrecvBufSize(int recvBufSize)Sets the size of the receive bufferSsendBufSize(int sendBufSize)Sets the size of the send bufferSsocketBinding(String name)Indicates the name of socket binding which will be usedSslConfigurationBuilder<T,S>ssl()Configures SSLSstartTransport(boolean startTransport)Indicates whether transport implementation should or should not be started.StcpKeepAlive(boolean tcpKeepAlive)Affects TCP KEEPALIVE on the TCP stack.StcpNoDelay(boolean tcpNoDelay)Affects TCP NODELAY on the TCP stack.SworkerThreads(int workerThreads)Sets the number of worker threads
-
-
-
Field Detail
-
builder
protected final ProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>> builder
-
-
Constructor Detail
-
AbstractProtocolServerConfigurationChildBuilder
protected AbstractProtocolServerConfigurationChildBuilder(ProtocolServerConfigurationChildBuilder<T,S> builder)
-
-
Method Detail
-
defaultCacheName
public S defaultCacheName(String defaultCacheName)
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the cache to use as a default cache for the protocol- Specified by:
defaultCacheNamein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
name
public S name(String 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,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
host
public S host(String host)
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the host or IP address on which this server will listen- Specified by:
hostin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
port
public S port(int port)
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies the port on which this server will listen- Specified by:
portin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
idleTimeout
public S idleTimeout(int 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,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
tcpNoDelay
public S tcpNoDelay(boolean tcpNoDelay)
Description copied from interface:ProtocolServerConfigurationChildBuilderAffects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelayin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
tcpKeepAlive
public S tcpKeepAlive(boolean tcpKeepAlive)
Description copied from interface:ProtocolServerConfigurationChildBuilderAffects TCP KEEPALIVE on the TCP stack. Defaults to disabled- Specified by:
tcpKeepAlivein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
recvBufSize
public S recvBufSize(int recvBufSize)
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the size of the receive buffer- Specified by:
recvBufSizein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
sendBufSize
public S sendBufSize(int sendBufSize)
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the size of the send buffer- Specified by:
sendBufSizein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
ssl
public SslConfigurationBuilder<T,S> ssl()
Description copied from interface:ProtocolServerConfigurationChildBuilderConfigures SSL- Specified by:
sslin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
ioThreads
public S ioThreads(int ioThreads)
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the number of I/O threads- Specified by:
ioThreadsin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
workerThreads
public S workerThreads(int workerThreads)
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the number of worker threads- Specified by:
workerThreadsin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
startTransport
public S startTransport(boolean startTransport)
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates whether transport implementation should or should not be started.- Specified by:
startTransportin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
adminOperationsHandler
public S adminOperationsHandler(org.infinispan.server.core.admin.AdminOperationsHandler handler)
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates theAdminOperationsHandlerwhich will be used to handle admin operations- Specified by:
adminOperationsHandlerin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
socketBinding
public S socketBinding(String name)
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates the name of socket binding which will be used- Specified by:
socketBindingin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
build
public T build()
Description copied from interface:ProtocolServerConfigurationChildBuilderBuilds a configuration object- Specified by:
buildin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
-