Class ProtocolServerConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
- java.lang.Object
-
- org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<T,S>
-
- All Implemented Interfaces:
Builder<T>,Self<S>,ProtocolServerConfigurationChildBuilder<T,S>
- Direct Known Subclasses:
HotRodServerConfigurationBuilder,MemcachedServerConfigurationBuilder,RestServerConfigurationBuilder
public abstract class ProtocolServerConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>> extends java.lang.Object implements ProtocolServerConfigurationChildBuilder<T,S>, Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeSetattributesprotected SslConfigurationBuilder<T,S>ssl
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtocolServerConfigurationBuilder(int port)protectedProtocolServerConfigurationBuilder(int port, AttributeSet attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SadminOperationsHandler(AdminOperationsHandler handler)Indicates theAdminOperationsHandlerwhich will be used to handle admin operationsSdefaultCacheName(java.lang.String defaultCacheName)Specifies the cache to use as a default cache for the protocoljava.lang.Stringhost()Shost(java.lang.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 threadsjava.lang.Stringname()Sname(java.lang.String name)Specifies a custom name for this server in order to easily distinguish it from other servers, e.g.intport()Sport(int port)Specifies the port on which this server will listenBuilder<?>read(T template)Reads the configuration from an already created configuration bean into this builder.SrecvBufSize(int recvBufSize)Sets the size of the receive bufferSsendBufSize(int sendBufSize)Sets the size of the send bufferSsocketBinding(java.lang.String name)Indicates the name of socket binding which will be usedSslConfigurationBuilderssl()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.voidvalidate()Validate the data in this builder before building the configuration beanSworkerThreads(int workerThreads)Sets the number of worker threads-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.server.core.configuration.ProtocolServerConfigurationChildBuilder
build
-
-
-
-
Field Detail
-
attributes
protected final AttributeSet attributes
-
ssl
protected final SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>> ssl
-
-
Constructor Detail
-
ProtocolServerConfigurationBuilder
protected ProtocolServerConfigurationBuilder(int port, AttributeSet attributes)
-
ProtocolServerConfigurationBuilder
protected ProtocolServerConfigurationBuilder(int port)
-
-
Method Detail
-
defaultCacheName
public S defaultCacheName(java.lang.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(java.lang.String name)
Description copied from interface:ProtocolServerConfigurationChildBuilderSpecifies a custom name for this server in order to easily distinguish it from other servers, e.g. via JMX. Defaults to the empty string.- Specified by:
namein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
-
name
public java.lang.String name()
-
host
public S host(java.lang.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>>
-
host
public java.lang.String host()
-
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>>
-
port
public int port()
-
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 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(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(java.lang.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>>
-
validate
public void validate()
Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<T extends ProtocolServerConfiguration>
-
read
public Builder<?> read(T template)
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<T extends ProtocolServerConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
-