public class KestrelCommandFactory extends Object implements CommandFactory
| 构造器和说明 |
|---|
KestrelCommandFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
Command |
createAddCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
create a add command
|
Command |
createAppendCommand(String key,
byte[] keyBytes,
Object value,
boolean noreply,
Transcoder transcoder)
create a append command
|
Command |
createAuthListMechanismsCommand(CountDownLatch latch)
Create a command for listing authentication mechanisms
|
Command |
createAuthStartCommand(String mechanism,
CountDownLatch latch,
byte[] authData)
Create command for starting authentication
|
Command |
createAuthStepCommand(String mechanism,
CountDownLatch latch,
byte[] authData)
Create a command for stepping authentication
|
Command |
createCASCommand(String key,
byte[] keyBytes,
int exp,
Object value,
long cas,
boolean noreply,
Transcoder transcoder)
Create a cas command
|
Command |
createDeleteCommand(String key,
byte[] keyBytes,
int time,
long cas,
boolean noreply)
create a delete command
|
Command |
createFlushAllCommand(CountDownLatch latch,
int delay,
boolean noreply)
create a flush_all command
|
Command |
createGetAndTouchCommand(String key,
byte[] keyBytes,
CountDownLatch latch,
int exp,
boolean noreply)
Create a get-and-touch command
|
Command |
createGetCommand(String key,
byte[] keyBytes,
CommandType cmdType,
Transcoder transcoder)
create a get/gets command
|
<T> Command |
createGetMultiCommand(Collection<String> keys,
CountDownLatch latch,
CommandType cmdType,
Transcoder<T> transcoder)
Create a multi-get command
|
Command |
createIncrDecrCommand(String key,
byte[] keyBytes,
long amount,
long initial,
int expTime,
CommandType cmdType,
boolean noreply)
create a incr/decr command
|
Command |
createPrependCommand(String key,
byte[] keyBytes,
Object value,
boolean noreply,
Transcoder transcoder)
Create a prepend command
|
Command |
createQuitCommand()
create a quit command
|
Command |
createReplaceCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
create a replace command
|
Command |
createSetCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
Create a set command
|
Command |
createStatsCommand(InetSocketAddress server,
CountDownLatch latch,
String itemName)
create a stats command
|
Command |
createTouchCommand(String key,
byte[] keyBytes,
CountDownLatch latch,
int exp,
boolean noreply)
Create a touch command
|
Command |
createVerbosityCommand(CountDownLatch latch,
int level,
boolean noreply)
Create a verbosity command
|
Command |
createVersionCommand(CountDownLatch latch,
InetSocketAddress server)
create a version command
|
Protocol |
getProtocol()
Get this client's protocol version
|
void |
setBufferAllocator(BufferAllocator bufferAllocator)
set command factory's buffer allocator
|
public Command createAddCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder)
CommandFactorycreateAddCommand 在接口中 CommandFactorypublic Command createAppendCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder)
CommandFactorycreateAppendCommand 在接口中 CommandFactorypublic Command createCASCommand(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder)
CommandFactorycreateCASCommand 在接口中 CommandFactorypublic Command createDeleteCommand(String key, byte[] keyBytes, int time, long cas, boolean noreply)
CommandFactorycreateDeleteCommand 在接口中 CommandFactorypublic Command createFlushAllCommand(CountDownLatch latch, int delay, boolean noreply)
CommandFactorycreateFlushAllCommand 在接口中 CommandFactorypublic Command createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder)
CommandFactorycreateGetCommand 在接口中 CommandFactorycmdType - 命令类型transcoder - TODOpublic <T> Command createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder)
CommandFactorycreateGetMultiCommand 在接口中 CommandFactorypublic Command createIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply)
CommandFactorycreateIncrDecrCommand 在接口中 CommandFactorypublic Command createPrependCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder)
CommandFactorycreatePrependCommand 在接口中 CommandFactorypublic Command createReplaceCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder)
CommandFactorycreateReplaceCommand 在接口中 CommandFactorypublic Command createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder)
CommandFactorycreateSetCommand 在接口中 CommandFactorypublic Command createStatsCommand(InetSocketAddress server, CountDownLatch latch, String itemName)
CommandFactorycreateStatsCommand 在接口中 CommandFactorypublic Command createVerbosityCommand(CountDownLatch latch, int level, boolean noreply)
CommandFactorycreateVerbosityCommand 在接口中 CommandFactorypublic Command createVersionCommand(CountDownLatch latch, InetSocketAddress server)
CommandFactorycreateVersionCommand 在接口中 CommandFactorypublic Command createQuitCommand()
CommandFactorycreateQuitCommand 在接口中 CommandFactorypublic Protocol getProtocol()
CommandFactorygetProtocol 在接口中 CommandFactorypublic Command createAuthListMechanismsCommand(CountDownLatch latch)
CommandFactorycreateAuthListMechanismsCommand 在接口中 CommandFactorypublic Command createAuthStartCommand(String mechanism, CountDownLatch latch, byte[] authData)
CommandFactorycreateAuthStartCommand 在接口中 CommandFactorypublic Command createAuthStepCommand(String mechanism, CountDownLatch latch, byte[] authData)
CommandFactorycreateAuthStepCommand 在接口中 CommandFactorypublic Command createGetAndTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply)
CommandFactorycreateGetAndTouchCommand 在接口中 CommandFactorylatch - TODOpublic Command createTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply)
CommandFactorycreateTouchCommand 在接口中 CommandFactorylatch - TODOpublic void setBufferAllocator(BufferAllocator bufferAllocator)
CommandFactorysetBufferAllocator 在接口中 CommandFactoryCopyright © 2013. All Rights Reserved.