| 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<Serializable> |
MemcacheClientBuilder.newSerializableObjectClient()
Create a client builder for serializable object values.
|
static MemcacheClientBuilder<String> |
MemcacheClientBuilder.newStringClient()
Create a client builder with a basic string transcoder using the UTF-8
Charset.
|
static MemcacheClientBuilder<String> |
MemcacheClientBuilder.newStringClient(Charset charset)
Create a client builder with a basic string transcoder using the supplied
Charset.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withAddress(com.google.common.net.HostAndPort address)
Define which memcache server to connect to.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withAddress(String hostname)
Define which memcache server to connect to.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withAddresses(List<com.google.common.net.HostAndPort> addresses)
Define which memcache servers to connect to.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withBackoff(BackoffFunction backoffFunction)
Specify how long the client should wait between reconnects.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withConnections(int connections)
Use multiple connections to each memcache server.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withKeyCharset(Charset charset)
Define the charset encoding for keys.
|
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.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withReplyExecutor(Executor executor)
Specify an executor to execute all replies on.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withRequestTimeoutMillis(long timeoutMillis)
Enforce a timeout for requests to complete, closing the connection and reconnecting if the
timeout is exceeded.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withRetry(boolean retry)
Specify if the client should retry once if the connection is closed.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVRecord(String srvRecord)
Use SRV to lookup nodes instead of a fixed set of addresses.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVRefreshPeriod(long periodMillis)
This is only used for the SRV based ketama client.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSrvResolver(com.spotify.dns.DnsSrvResolver srvResolver)
Use a specific SRV resolver.
|
MemcacheClientBuilder<V> |
MemcacheClientBuilder.withSRVShutdownDelay(long shutdownDelay)
This is only used for the SRV based ketama client.
|
Copyright © 2017 Spotify AB. All rights reserved.