| Package | Description |
|---|---|
| com.spotify.folsom |
| Modifier and Type | Method and Description |
|---|---|
static MemcacheClientBuilder<byte[]> |
MemcacheClientBuilder.newByteArrayClient()
Create a client builder for byte array values.
|
static MemcacheClientBuilder<java.io.Serializable> |
MemcacheClientBuilder.newSerializableObjectClient()
Create a client builder for serializable object values.
|
static MemcacheClientBuilder<java.lang.String> |
MemcacheClientBuilder.newStringClient()
Create a client builder with a basic string transcoder using the UTF-8 Charset.
|
static MemcacheClientBuilder<java.lang.String> |
MemcacheClientBuilder.newStringClient(java.nio.charset.Charset charset)
Create a client builder with a basic string transcoder using the supplied Charset.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withAddress(java.lang.String hostname)
Define which memcache server to connect to.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withAddress(java.lang.String host,
int port)
Define which memcache server to connect to.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withBackoff(BackoffFunction backoffFunction)
Specify how long the client should wait between reconnects.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withChannelClass(java.lang.Class<? extends io.netty.channel.Channel> channelClass)
Set a Netty
Channel class for the client. |
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withConnections(int connections)
Use multiple connections to each memcache server.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withConnectionTimeoutMillis(long timeoutMillis)
Set the maximum time to wait before considering the connection to be dead and should be closed
and recreated.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Set an Netty
EventLoopGroup for the client. |
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withKeyCharset(java.nio.charset.Charset charset)
Define the charset encoding for keys.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withMaxKeyLength(int maxKeyLength)
Set the maximum key length of the byte representation of the input string.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withMaxOutstandingRequests(int maxOutstandingRequests)
Specify the maximum number of requests in the queue per server connection.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withMaxSetLength(int maxSetLength)
Set the maximum value size for set requests.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withMetrics(Metrics metrics)
Specify how to collect metrics.
|
(package private) MemcacheClientBuilder<V> |
MemcacheClientBuilder.withoutAuthenticationValidation()
Disable authentication validation - only useful for tests against jmemcached which does not
support binary NOOP
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withReplyExecutor(java.util.concurrent.Executor executor)
Specify an executor to execute all replies on.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withRequestBatchSize(int batchSize)
Specify the maximum number of operations that will be batched together in one network request.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withRequestTimeoutMillis(long timeoutMillis)
Deprecated.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withResolver(Resolver resolver)
Use a dynamic resolved instead of a fixed set of addresses.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withResolveRefreshPeriod(long periodMillis)
This is only used for the dynamic ketama client.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withResolveShutdownDelay(long shutdownDelay)
This is only used for the dynamic ketama client.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withRetry(boolean retry)
Specify if the client should retry once if the connection is closed.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVRecord(java.lang.String srvRecord)
Deprecated.
Use
withResolver(Resolver) with SrvResolver instead. |
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVRefreshPeriod(long periodMillis)
Deprecated.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSrvResolver(com.spotify.dns.DnsSrvResolver srvResolver)
Deprecated.
Use
withResolver(Resolver) with SrvResolver instead |
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVShutdownDelay(long shutdownDelay)
Deprecated.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withTracer(Tracer tracer)
Specify how to collect tracing.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withUsernamePassword(java.lang.String username,
java.lang.String password)
Authenticate with memcached using plaintext SASL.
|
Copyright © 2020 Spotify AB. All Rights Reserved.