|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Constructor Summary | |
|---|---|
KestrelCommandFactory()
|
|
| Method Summary | ||
|---|---|---|
Command |
createAddCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
create a add command |
|
Command |
createAppendCommand(java.lang.String key,
byte[] keyBytes,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
create a append command |
|
Command |
createAuthListMechanismsCommand(java.util.concurrent.CountDownLatch latch)
Create a command for listing authentication mechanisms |
|
Command |
createAuthStartCommand(java.lang.String mechanism,
java.util.concurrent.CountDownLatch latch,
byte[] authData)
Create command for starting authentication |
|
Command |
createAuthStepCommand(java.lang.String mechanism,
java.util.concurrent.CountDownLatch latch,
byte[] authData)
Create a command for stepping authentication |
|
Command |
createCASCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
long cas,
boolean noreply,
Transcoder transcoder)
Create a cas command |
|
Command |
createDeleteCommand(java.lang.String key,
byte[] keyBytes,
int time,
boolean noreply)
create a delete command |
|
Command |
createFlushAllCommand(java.util.concurrent.CountDownLatch latch,
int delay,
boolean noreply)
create a flush_all command |
|
Command |
createGetCommand(java.lang.String key,
byte[] keyBytes,
CommandType cmdType,
Transcoder transcoder)
create a get/gets command |
|
|
createGetMultiCommand(java.util.Collection<java.lang.String> keys,
java.util.concurrent.CountDownLatch latch,
CommandType cmdType,
Transcoder<T> transcoder)
Create a multi-get command |
|
Command |
createIncrDecrCommand(java.lang.String key,
byte[] keyBytes,
long amount,
long initial,
int expTime,
CommandType cmdType,
boolean noreply)
create a incr/decr command |
|
Command |
createPrependCommand(java.lang.String key,
byte[] keyBytes,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
Create a prepend command |
|
Command |
createQuitCommand()
create a quit command |
|
Command |
createReplaceCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
create a replace command |
|
Command |
createSetCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
Create a set command |
|
Command |
createStatsCommand(java.net.InetSocketAddress server,
java.util.concurrent.CountDownLatch latch,
java.lang.String itemName)
create a stats command |
|
Command |
createVerbosityCommand(java.util.concurrent.CountDownLatch latch,
int level,
boolean noreply)
Create a verbosity command |
|
Command |
createVersionCommand(java.util.concurrent.CountDownLatch latch,
java.net.InetSocketAddress server)
create a version command |
|
Protocol |
getProtocol()
Get this client's protocol version |
|
void |
setBufferAllocator(BufferAllocator bufferAllocator)
set command factory's buffer allocator |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KestrelCommandFactory()
| Method Detail |
|---|
public Command createAddCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory
createAddCommand in interface CommandFactory
public Command createAppendCommand(java.lang.String key,
byte[] keyBytes,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory
createAppendCommand in interface CommandFactory
public Command createCASCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
long cas,
boolean noreply,
Transcoder transcoder)
CommandFactory
createCASCommand in interface CommandFactory
public Command createDeleteCommand(java.lang.String key,
byte[] keyBytes,
int time,
boolean noreply)
CommandFactory
createDeleteCommand in interface CommandFactory
public Command createFlushAllCommand(java.util.concurrent.CountDownLatch latch,
int delay,
boolean noreply)
CommandFactory
createFlushAllCommand in interface CommandFactory
public Command createGetCommand(java.lang.String key,
byte[] keyBytes,
CommandType cmdType,
Transcoder transcoder)
CommandFactory
createGetCommand in interface CommandFactorycmdType - 命令类型transcoder - TODO
public <T> Command createGetMultiCommand(java.util.Collection<java.lang.String> keys,
java.util.concurrent.CountDownLatch latch,
CommandType cmdType,
Transcoder<T> transcoder)
CommandFactory
createGetMultiCommand in interface CommandFactory
public Command createIncrDecrCommand(java.lang.String key,
byte[] keyBytes,
long amount,
long initial,
int expTime,
CommandType cmdType,
boolean noreply)
CommandFactory
createIncrDecrCommand in interface CommandFactory
public Command createPrependCommand(java.lang.String key,
byte[] keyBytes,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory
createPrependCommand in interface CommandFactory
public Command createReplaceCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory
createReplaceCommand in interface CommandFactory
public Command createSetCommand(java.lang.String key,
byte[] keyBytes,
int exp,
java.lang.Object value,
boolean noreply,
Transcoder transcoder)
CommandFactory
createSetCommand in interface CommandFactory
public Command createStatsCommand(java.net.InetSocketAddress server,
java.util.concurrent.CountDownLatch latch,
java.lang.String itemName)
CommandFactory
createStatsCommand in interface CommandFactory
public Command createVerbosityCommand(java.util.concurrent.CountDownLatch latch,
int level,
boolean noreply)
CommandFactory
createVerbosityCommand in interface CommandFactory
public Command createVersionCommand(java.util.concurrent.CountDownLatch latch,
java.net.InetSocketAddress server)
CommandFactory
createVersionCommand in interface CommandFactorypublic Command createQuitCommand()
CommandFactory
createQuitCommand in interface CommandFactorypublic Protocol getProtocol()
CommandFactory
getProtocol in interface CommandFactorypublic Command createAuthListMechanismsCommand(java.util.concurrent.CountDownLatch latch)
CommandFactory
createAuthListMechanismsCommand in interface CommandFactory
public Command createAuthStartCommand(java.lang.String mechanism,
java.util.concurrent.CountDownLatch latch,
byte[] authData)
CommandFactory
createAuthStartCommand in interface CommandFactory
public Command createAuthStepCommand(java.lang.String mechanism,
java.util.concurrent.CountDownLatch latch,
byte[] authData)
CommandFactory
createAuthStepCommand in interface CommandFactorypublic void setBufferAllocator(BufferAllocator bufferAllocator)
CommandFactory
setBufferAllocator in interface CommandFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||