Package | Description |
---|---|
com.google.code.yanf4j.core |
Networking core package
|
com.google.code.yanf4j.core.impl | |
net.rubyeye.xmemcached |
XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.
|
net.rubyeye.xmemcached.networking |
Networking layout to talk with memcached.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
Controller.setSocketOption(SocketOption<T> socketOption,
T value) |
Modifier and Type | Field and Description |
---|---|
static SocketOption<Boolean> |
StandardSocketOption.SO_KEEPALIVE
Keep connection alive.
|
static SocketOption<Integer> |
StandardSocketOption.SO_LINGER
Linger on close if data is present.
|
static SocketOption<Integer> |
StandardSocketOption.SO_RCVBUF
The size of the socket receive buffer.
|
static SocketOption<Boolean> |
StandardSocketOption.SO_REUSEADDR
Re-use address.
|
static SocketOption<Integer> |
StandardSocketOption.SO_SNDBUF
The size of the socket send buffer.
|
static SocketOption<Boolean> |
StandardSocketOption.TCP_NODELAY
Disable the Nagle algorithm.
|
Modifier and Type | Field and Description |
---|---|
protected Map<SocketOption,Object> |
AbstractController.socketOptions
Socket options
|
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractController.getSocketOption(SocketOption<T> socketOption) |
<T> void |
AbstractController.setSocketOption(SocketOption<T> socketOption,
T value) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractController.setSocketOptions(Map<SocketOption,Object> socketOptions) |
Modifier and Type | Field and Description |
---|---|
protected Map<SocketOption,Object> |
XMemcachedClientBuilder.socketOptions |
Modifier and Type | Method and Description |
---|---|
static Map<SocketOption,Object> |
XMemcachedClientBuilder.getDefaultSocketOptions() |
Map<SocketOption,Object> |
MemcachedClientBuilder.getSocketOptions()
Get all tcp socket options
|
Map<SocketOption,Object> |
XMemcachedClientBuilder.getSocketOptions() |
Modifier and Type | Method and Description |
---|---|
void |
MemcachedClientBuilder.setSocketOption(SocketOption socketOption,
Object value)
Set tcp socket option
|
void |
XMemcachedClientBuilder.setSocketOption(SocketOption socketOption,
Object value) |
Constructor and Description |
---|
XMemcachedClient(MemcachedSessionLocator locator,
MemcachedSessionComparator comparator,
BufferAllocator allocator,
Configuration conf,
Map<SocketOption,Object> socketOptions,
CommandFactory commandFactory,
Transcoder transcoder,
Map<InetSocketAddress,InetSocketAddress> addressMap,
List<MemcachedClientStateListener> stateListeners,
Map<InetSocketAddress,AuthInfo> map,
int poolSize,
long connectTimeout,
String name,
boolean failureMode,
boolean resolveInetAddresses)
XMemcachedClient constructor.Every server's weight is one by default.
|
Modifier and Type | Method and Description |
---|---|
void |
Connector.setSocketOptions(Map<SocketOption,Object> options) |
Copyright © 2021. All rights reserved.