|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.rubyeye.xmemcached.command.KestrelCommandFactory
public class KestrelCommandFactory
Kestrel is a message queue written in scala by robey(http://github.com/robey/kestrel).It's protocol use memcached text protocol,so you can use any memcached clients to talk with it.But it's protocol implementation is not all compatible with memcached standard protocol,So xmemcached supply this command factory for it.
| 构造方法摘要 | |
|---|---|
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,
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 |
|
|
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 |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public KestrelCommandFactory()
| 方法详细信息 |
|---|
public Command createAddCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createAddCommand
public Command createAppendCommand(String key,
byte[] keyBytes,
Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createAppendCommand
public Command createCASCommand(String key,
byte[] keyBytes,
int exp,
Object value,
long cas,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createCASCommand
public Command createDeleteCommand(String key,
byte[] keyBytes,
int time,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createDeleteCommand
public Command createFlushAllCommand(CountDownLatch latch,
int delay,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createFlushAllCommand
public Command createGetCommand(String key,
byte[] keyBytes,
CommandType cmdType,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createGetCommandcmdType - 命令类型transcoder - TODO
public <T> Command createGetMultiCommand(Collection<String> keys,
CountDownLatch latch,
CommandType cmdType,
Transcoder<T> transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createGetMultiCommand
public Command createIncrDecrCommand(String key,
byte[] keyBytes,
long amount,
long initial,
int expTime,
CommandType cmdType,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createIncrDecrCommand
public Command createPrependCommand(String key,
byte[] keyBytes,
Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createPrependCommand
public Command createReplaceCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createReplaceCommand
public Command createSetCommand(String key,
byte[] keyBytes,
int exp,
Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory 复制的描述
CommandFactory 中的 createSetCommand
public Command createStatsCommand(InetSocketAddress server,
CountDownLatch latch,
String itemName)
CommandFactory 复制的描述
CommandFactory 中的 createStatsCommand
public Command createVerbosityCommand(CountDownLatch latch,
int level,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createVerbosityCommand
public Command createVersionCommand(CountDownLatch latch,
InetSocketAddress server)
CommandFactory 复制的描述
CommandFactory 中的 createVersionCommandpublic Command createQuitCommand()
CommandFactory 复制的描述
CommandFactory 中的 createQuitCommandpublic Protocol getProtocol()
CommandFactory 复制的描述
CommandFactory 中的 getProtocolpublic Command createAuthListMechanismsCommand(CountDownLatch latch)
CommandFactory 复制的描述
CommandFactory 中的 createAuthListMechanismsCommand
public Command createAuthStartCommand(String mechanism,
CountDownLatch latch,
byte[] authData)
CommandFactory 复制的描述
CommandFactory 中的 createAuthStartCommand
public Command createAuthStepCommand(String mechanism,
CountDownLatch latch,
byte[] authData)
CommandFactory 复制的描述
CommandFactory 中的 createAuthStepCommand
public Command createGetAndTouchCommand(String key,
byte[] keyBytes,
CountDownLatch latch,
int exp,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createGetAndTouchCommandlatch - TODO
public Command createTouchCommand(String key,
byte[] keyBytes,
CountDownLatch latch,
int exp,
boolean noreply)
CommandFactory 复制的描述
CommandFactory 中的 createTouchCommandlatch - TODO
public void setBufferAllocator(BufferAllocator bufferAllocator)
CommandFactory 复制的描述
CommandFactory 中的 setBufferAllocator
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||