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 Object
implements ProtocolServerConfigurationChildBuilder<T,S>, Builder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.infinispan.commons.configuration.attributes.AttributeSetprotected final IpFilterConfigurationBuilder<T,S> protected final SslConfigurationBuilder<T,S> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtocolServerConfigurationBuilder(int port) protectedProtocolServerConfigurationBuilder(int port, org.infinispan.commons.configuration.attributes.AttributeSet attributes) -
Method Summary
Modifier and TypeMethodDescriptionadminOperationsHandler(org.infinispan.server.core.admin.AdminOperationsHandler handler) Indicates theAdminOperationsHandlerwhich will be used to handle admin operationsdefaultCacheName(String defaultCacheName) Specifies the cache to use as a default cache for the protocolhost()Specifies 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 rulesname()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.intport()port(int port) Specifies the port on which this server will listenBuilder<?>Reads the configuration from an already created configuration bean into this builder.recvBufSize(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 SSLbooleanstartTransport(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.voidvalidate()Validate the data in this builder before building the configuration beanworkerThreads(int workerThreads) Sets the number of worker threadsMethods inherited from interface org.infinispan.server.core.configuration.ProtocolServerConfigurationChildBuilder
build
-
Field Details
-
attributes
protected final org.infinispan.commons.configuration.attributes.AttributeSet attributes -
ssl
protected final SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, sslS>> -
ipFilter
protected final IpFilterConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, ipFilterS>>
-
-
Constructor Details
-
ProtocolServerConfigurationBuilder
protected ProtocolServerConfigurationBuilder(int port, org.infinispan.commons.configuration.attributes.AttributeSet attributes) -
ProtocolServerConfigurationBuilder
protected ProtocolServerConfigurationBuilder(int port)
-
-
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,S extends ProtocolServerConfigurationChildBuilder<T, S>>
-
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>>
-
name
-
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
-
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
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
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
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
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the size of the receive buffer- Specified by:
recvBufSizein interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, S>>
-
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
Description copied from interface:ProtocolServerConfigurationChildBuilderConfigures SSL- Specified by:
sslin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, S>>
-
ipFilter
Description copied from interface:ProtocolServerConfigurationChildBuilderConfigures the IP filter rules- Specified by:
ipFilterin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, S>>
-
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
Description copied from interface:ProtocolServerConfigurationChildBuilderSets the number of worker threads- Specified by:
workerThreadsin interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T, S>>
-
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>>
-
startTransport
public boolean startTransport() -
adminOperationsHandler
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
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>>
-
socketBinding
-
implicitConnector
Description copied from interface:ProtocolServerConfigurationChildBuilderIndicates whether this connector was added implicitly- Specified by:
implicitConnectorin 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
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.
-