Class MemcachedServerConfigurationBuilder
- java.lang.Object
-
- org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
-
- org.infinispan.server.memcached.configuration.MemcachedServerConfigurationBuilder
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<MemcachedServerConfiguration>
,org.infinispan.commons.configuration.Self<MemcachedServerConfigurationBuilder>
,ProtocolServerConfigurationChildBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
public class MemcachedServerConfigurationBuilder extends ProtocolServerConfigurationBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder> implements org.infinispan.commons.configuration.Builder<MemcachedServerConfiguration>
MemcachedServerConfigurationBuilder.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Field Summary
-
Fields inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
attributes, ssl
-
-
Constructor Summary
Constructors Constructor Description MemcachedServerConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MemcachedServerConfigurationBuilder
adminOperationsHandler(AdminOperationsHandler handler)
Indicates theAdminOperationsHandler
which will be used to handle admin operationsMemcachedServerConfiguration
build()
Builds a configuration objectMemcachedServerConfiguration
build(boolean validate)
MemcachedServerConfigurationBuilder
cache(String cache)
Deprecated.MemcachedServerConfigurationBuilder
clientEncoding(org.infinispan.commons.dataconversion.MediaType payloadType)
The encoding to be used by clients of the memcached text protocol.MemcachedServerConfiguration
create()
Create the configuration beanorg.infinispan.commons.configuration.Builder<?>
read(MemcachedServerConfiguration template)
Reads the configuration from an already created configuration bean into this builder.MemcachedServerConfigurationBuilder
self()
-
Methods inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
defaultCacheName, host, idleTimeout, ignoredCaches, ioThreads, name, name, port, recvBufSize, sendBufSize, ssl, startTransport, tcpKeepAlive, tcpNoDelay, validate, workerThreads
-
-
-
-
Method Detail
-
self
public MemcachedServerConfigurationBuilder self()
- Specified by:
self
in interfaceorg.infinispan.commons.configuration.Self<MemcachedServerConfigurationBuilder>
-
cache
@Deprecated public MemcachedServerConfigurationBuilder cache(String cache)
Deprecated.
-
adminOperationsHandler
public MemcachedServerConfigurationBuilder adminOperationsHandler(AdminOperationsHandler handler)
Description copied from interface:ProtocolServerConfigurationChildBuilder
Indicates theAdminOperationsHandler
which will be used to handle admin operations- Specified by:
adminOperationsHandler
in interfaceProtocolServerConfigurationChildBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
- Overrides:
adminOperationsHandler
in classProtocolServerConfigurationBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
-
clientEncoding
public MemcachedServerConfigurationBuilder clientEncoding(org.infinispan.commons.dataconversion.MediaType payloadType)
The encoding to be used by clients of the memcached text protocol. When not specified, "application/octet-stream" is assumed. When encoding is set, the memcached text server will assume clients will be reading and writing values in that encoding, and will perform the necessary conversions between this encoding and the storage format.
-
create
public MemcachedServerConfiguration create()
Description copied from interface:org.infinispan.commons.configuration.Builder
Create the configuration bean- Specified by:
create
in interfaceorg.infinispan.commons.configuration.Builder<MemcachedServerConfiguration>
- Returns:
-
build
public MemcachedServerConfiguration build(boolean validate)
-
build
public MemcachedServerConfiguration build()
Description copied from interface:ProtocolServerConfigurationChildBuilder
Builds a configuration object- Specified by:
build
in interfaceProtocolServerConfigurationChildBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
-
read
public org.infinispan.commons.configuration.Builder<?> read(MemcachedServerConfiguration template)
Description copied from interface:org.infinispan.commons.configuration.Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceorg.infinispan.commons.configuration.Builder<MemcachedServerConfiguration>
- Overrides:
read
in classProtocolServerConfigurationBuilder<MemcachedServerConfiguration,MemcachedServerConfigurationBuilder>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
-