Class ProtocolServerConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>,S extends ProtocolServerConfigurationChildBuilder<T,S,A>,A extends AuthenticationConfiguration>
java.lang.Object
org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<T,S,A>
- All Implemented Interfaces:
Builder<T>
,Self<S>
,ProtocolServerConfigurationChildBuilder<T,
S, A>
- Direct Known Subclasses:
HotRodServerConfigurationBuilder
,MemcachedServerConfigurationBuilder
,RestServerConfigurationBuilder
public abstract class ProtocolServerConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>,S extends ProtocolServerConfigurationChildBuilder<T,S,A>,A extends AuthenticationConfiguration>
extends Object
implements ProtocolServerConfigurationChildBuilder<T,S,A>, Builder<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AttributeSet
protected final IpFilterConfigurationBuilder
<T, S, A> protected final SslConfigurationBuilder
<T, S, A> -
Constructor Summary
ModifierConstructorDescriptionprotected
ProtocolServerConfigurationBuilder
(int port, AttributeSet attributes) -
Method Summary
Modifier and TypeMethodDescriptionIndicates theAdminOperationsHandler
which 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 activityboolean
implicitConnector
(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.int
port()
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 SSLboolean
startTransport
(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.void
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.configuration.Builder
attributes, create, read, reset
Methods inherited from interface org.infinispan.server.core.configuration.ProtocolServerConfigurationChildBuilder
authentication, build
-
Field Details
-
attributes
-
ssl
protected final SslConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>, sslS extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration> -
ipFilter
protected final IpFilterConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>, ipFilterS extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
-
Constructor Details
-
ProtocolServerConfigurationBuilder
-
-
Method Details
-
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<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
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<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
name
-
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<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
host
-
port
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the port on which this server will listen- Specified by:
port
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
port
public int port() -
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<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
tcpNoDelay
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelay
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
tcpKeepAlive
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP KEEPALIVE on the TCP stack. Defaults to disabled- Specified by:
tcpKeepAlive
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
recvBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the receive buffer- Specified by:
recvBufSize
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
sendBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the send buffer- Specified by:
sendBufSize
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ssl
Description copied from interface:ProtocolServerConfigurationChildBuilder
Configures SSL- Specified by:
ssl
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ipFilter
Description copied from interface:ProtocolServerConfigurationChildBuilder
Configures the IP filter rules- Specified by:
ipFilter
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
ioThreads
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the number of I/O threads- Specified by:
ioThreads
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
startTransport
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates whether transport implementation should or should not be started.- Specified by:
startTransport
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
startTransport
public boolean startTransport() -
adminOperationsHandler
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates theAdminOperationsHandler
which will be used to handle admin operations- Specified by:
adminOperationsHandler
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
socketBinding
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates the name of socket binding which will be used- Specified by:
socketBinding
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
socketBinding
-
implicitConnector
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates whether this connector was added implicitly- Specified by:
implicitConnector
in interfaceProtocolServerConfigurationChildBuilder<T extends ProtocolServerConfiguration<T,
A>, S extends ProtocolServerConfigurationChildBuilder<T, S, A>, A extends AuthenticationConfiguration>
-
implicitConnector
public boolean implicitConnector() -
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean -
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration
-