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 protected
AbstractProtocolServerConfigurationChildBuilder(ProtocolServerConfigurationChildBuilder<T,S> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
adminOperationsHandler(org.infinispan.server.core.admin.AdminOperationsHandler handler)
Indicates theAdminOperationsHandler
which will be used to handle admin operationsT
build()
Builds a configuration objectS
defaultCacheName(String defaultCacheName)
Specifies the cache to use as a default cache for the protocolS
host(String host)
Specifies the host or IP address on which this server will listenS
idleTimeout(int idleTimeout)
Specifies the maximum time that connections from client will be kept open without activityS
ioThreads(int ioThreads)
Sets the number of I/O threadsS
name(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.S
port(int port)
Specifies the port on which this server will listenS
recvBufSize(int recvBufSize)
Sets the size of the receive bufferS
sendBufSize(int sendBufSize)
Sets the size of the send bufferS
socketBinding(String name)
Indicates the name of socket binding which will be usedSslConfigurationBuilder<T,S>
ssl()
Configures SSLS
startTransport(boolean startTransport)
Indicates whether transport implementation should or should not be started.S
tcpKeepAlive(boolean tcpKeepAlive)
Affects TCP KEEPALIVE on the TCP stack.S
tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack.S
workerThreads(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:ProtocolServerConfigurationChildBuilder
Specifies the cache to use as a default cache for the protocol- Specified by:
defaultCacheName
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
name
public S name(String name)
Description copied from interface:ProtocolServerConfigurationChildBuilder
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. via JMX. Defaults to the empty string. The name should be the same across the cluster.- Specified by:
name
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
host
public S host(String host)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the host or IP address on which this server will listen- Specified by:
host
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
port
public S port(int port)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the port on which this server will listen- Specified by:
port
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
idleTimeout
public S idleTimeout(int idleTimeout)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the maximum time that connections from client will be kept open without activity- Specified by:
idleTimeout
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
tcpNoDelay
public S tcpNoDelay(boolean tcpNoDelay)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelay
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
tcpKeepAlive
public S tcpKeepAlive(boolean tcpKeepAlive)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP KEEPALIVE on the TCP stack. Defaults to disabled- Specified by:
tcpKeepAlive
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
recvBufSize
public S recvBufSize(int recvBufSize)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the receive buffer- Specified by:
recvBufSize
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
sendBufSize
public S sendBufSize(int sendBufSize)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the send buffer- Specified by:
sendBufSize
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
ssl
public SslConfigurationBuilder<T,S> ssl()
Description copied from interface:ProtocolServerConfigurationChildBuilder
Configures SSL- Specified by:
ssl
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
ioThreads
public S ioThreads(int ioThreads)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the number of I/O threads- Specified by:
ioThreads
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
workerThreads
public S workerThreads(int workerThreads)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the number of worker threads- Specified by:
workerThreads
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
startTransport
public S startTransport(boolean startTransport)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates whether transport implementation should or should not be started.- Specified by:
startTransport
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
adminOperationsHandler
public S adminOperationsHandler(org.infinispan.server.core.admin.AdminOperationsHandler handler)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates theAdminOperationsHandler
which will be used to handle admin operations- Specified by:
adminOperationsHandler
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
socketBinding
public S socketBinding(String name)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates the name of socket binding which will be used- Specified by:
socketBinding
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
build
public T build()
Description copied from interface:ProtocolServerConfigurationChildBuilder
Builds a configuration object- Specified by:
build
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
-