Uses of Interface
net.rubyeye.xmemcached.transcoders.Transcoder
Packages that use Transcoder
Package
Description
XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.
Memcached protocol implementations
Memcached text protocol implementations
Kestrel protocol implementations
Memcached text protocol implementations
Transcoders convert data to and from data and flags,from spymemcached
-
Uses of Transcoder in net.rubyeye.xmemcached
Fields in net.rubyeye.xmemcached declared as TranscoderModifier and TypeFieldDescriptionprivate Transcoder
XMemcachedClient.transcoder
protected Transcoder
XMemcachedClientBuilder.transcoder
Methods in net.rubyeye.xmemcached that return TranscoderModifier and TypeMethodDescriptionMemcachedClient.getTranscoder()
return default transcoder,default is SerializingTranscoderMemcachedClientBuilder.getTranscoder()
Set xmemcached's transcoder,it is used for seriailizingfinal Transcoder
XMemcachedClient.getTranscoder()
XMemcachedClientBuilder.getTranscoder()
Methods in net.rubyeye.xmemcached with parameters of type TranscoderModifier and TypeMethodDescription<T> boolean
MemcachedClient.add
(String key, int exp, T value, Transcoder<T> transcoder) <T> boolean
MemcachedClient.add
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) Add key-value item to memcached, success only when the key is not exists in memcached.final <T> boolean
XMemcachedClient.add
(String key, int exp, T value, Transcoder<T> transcoder) final <T> boolean
XMemcachedClient.add
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) private <T> boolean
XMemcachedClient.add0
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) <T> void
MemcachedClient.addWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) <T> void
XMemcachedClient.addWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) private void
XMemcachedClient.buildConnector
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator bufferAllocator, Configuration configuration, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder) <T> boolean
MemcachedClient.cas
(String key, int exp, CASOperation<T> operation, Transcoder<T> transcoder) Cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it."<T> boolean
MemcachedClient.cas
(String key, int exp, GetsResponse<T> getsReponse, CASOperation<T> operation, Transcoder<T> transcoder) cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it."<T> boolean
MemcachedClient.cas
(String key, int exp, T value, Transcoder<T> transcoder, long cas) <T> boolean
MemcachedClient.cas
(String key, int exp, T value, Transcoder<T> transcoder, long timeout, long cas) Cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it."final <T> boolean
XMemcachedClient.cas
(String key, int exp, CASOperation<T> operation, Transcoder<T> transcoder) final <T> boolean
XMemcachedClient.cas
(String key, int exp, GetsResponse<T> getsReponse, CASOperation<T> operation, Transcoder<T> transcoder) final <T> boolean
XMemcachedClient.cas
(String key, int exp, T value, Transcoder<T> transcoder, long cas) final <T> boolean
XMemcachedClient.cas
(String key, int exp, T value, Transcoder<T> transcoder, long timeout, long cas) private final <T> boolean
XMemcachedClient.cas0
(String key, int exp, GetsResponse<T> getsResponse, CASOperation<T> operation, Transcoder<T> transcoder, byte[] keyBytes, boolean noreply) CommandFactory.createAddCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) create a add commandCommandFactory.createAppendCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) create a append commandCommandFactory.createCASCommand
(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) Create a cas commandCommandFactory.createGetCommand
(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) create a get/gets command<T> Command
CommandFactory.createGetMultiCommand
(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) Create a multi-get commandCommandFactory.createPrependCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) Create a prepend commandCommandFactory.createReplaceCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) create a replace commandCommandFactory.createSetCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) Create a set commandprivate final <T> Object
XMemcachedClient.fetch0
(String key, byte[] keyBytes, CommandType cmdType, long timeout, Transcoder<T> transcoder) <T> T
MemcachedClient.get
(String key, long timeout, Transcoder<T> transcoder) Get value by key<T> T
MemcachedClient.get
(String key, Transcoder<T> transcoder) MemcachedClient.get
(Collection<String> keyCollections, long opTimeout, Transcoder<T> transcoder) Bulk get itemsMemcachedClient.get
(Collection<String> keyCollections, Transcoder<T> transcoder) final <T> T
XMemcachedClient.get
(String key, long timeout, Transcoder<T> transcoder) final <T> T
XMemcachedClient.get
(String key, Transcoder<T> transcoder) XMemcachedClient.get
(Collection<String> keyCollections, long timeout, Transcoder<T> transcoder) XMemcachedClient.get
(Collection<String> keyCollections, Transcoder<T> transcoder) private <T> Object
XMemcachedClient.get0
(String key, long timeout, CommandType cmdType, Transcoder<T> transcoder) XMemcachedClient.getMulti0
(Collection<String> keys, long timeout, CommandType cmdType, Transcoder<T> transcoder) <T> GetsResponse
<T> MemcachedClient.gets
(String key, long timeout, Transcoder<T> transcoder) Just like get,But it return a GetsResponse,include cas value for cas update.<T> GetsResponse
<T> MemcachedClient.gets
(String key, Transcoder transcoder) <T> Map
<String, GetsResponse<T>> MemcachedClient.gets
(Collection<String> keyCollections, long opTime, Transcoder<T> transcoder) Bulk gets items<T> Map
<String, GetsResponse<T>> MemcachedClient.gets
(Collection<String> keyCollections, Transcoder<T> transcoder) final <T> GetsResponse
<T> XMemcachedClient.gets
(String key, long timeout, Transcoder<T> transcoder) final <T> GetsResponse
<T> XMemcachedClient.gets
(String key, Transcoder transcoder) final <T> Map
<String, GetsResponse<T>> XMemcachedClient.gets
(Collection<String> keyCollections, long timeout, Transcoder<T> transcoder) final <T> Map
<String, GetsResponse<T>> XMemcachedClient.gets
(Collection<String> keyCollections, Transcoder<T> transcoder) private final <T> GetsResponse
<T> XMemcachedClient.gets0
(String key, byte[] keyBytes, Transcoder<T> transcoder) XMemcachedClient.reduceResult
(CommandType cmdType, Transcoder<T> transcoder, List<Command> commands) <T> boolean
MemcachedClient.replace
(String key, int exp, T value, Transcoder<T> transcoder) <T> boolean
MemcachedClient.replace
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) Replace the key's data item in memcached,success only when the key's data item is exists in memcached.This method will wait for reply from server.final <T> boolean
XMemcachedClient.replace
(String key, int exp, T value, Transcoder<T> transcoder) final <T> boolean
XMemcachedClient.replace
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) <T> void
MemcachedClient.replaceWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) <T> void
XMemcachedClient.replaceWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) private final <T> Command
XMemcachedClient.sendGetMultiCommand
(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) <T> boolean
MemcachedClient.set
(String key, int exp, T value, Transcoder<T> transcoder) <T> boolean
MemcachedClient.set
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) Store key-value item to memcachedfinal <T> boolean
XMemcachedClient.set
(String key, int exp, T value, Transcoder<T> transcoder) final <T> boolean
XMemcachedClient.set
(String key, int exp, T value, Transcoder<T> transcoder, long timeout) void
MemcachedClient.setTranscoder
(Transcoder transcoder) set transcodervoid
MemcachedClientBuilder.setTranscoder
(Transcoder transcoder) final void
XMemcachedClient.setTranscoder
(Transcoder transcoder) void
XMemcachedClientBuilder.setTranscoder
(Transcoder transcoder) <T> void
MemcachedClient.setWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) <T> void
XMemcachedClient.setWithNoReply
(String key, int exp, T value, Transcoder<T> transcoder) Constructors in net.rubyeye.xmemcached with parameters of type TranscoderModifierConstructorDescription(package private)
XMemcachedClient
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, Map<InetSocketAddress, InetSocketAddress> addressMap, int[] weights, List<MemcachedClientStateListener> stateListeners, Map<InetSocketAddress, AuthInfo> infoMap, int poolSize, long connectTimeout, String name, boolean failureMode, boolean resolveInetAddresses) XMemcachedClient constructor.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. -
Uses of Transcoder in net.rubyeye.xmemcached.aws
Constructors in net.rubyeye.xmemcached.aws with parameters of type TranscoderModifierConstructorDescription(package private)
AWSElasticCacheClient
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, List<MemcachedClientStateListener> stateListeners, Map<InetSocketAddress, AuthInfo> map, int poolSize, long connectTimeout, String name, boolean failureMode, boolean resolveInetAddresses, List<InetSocketAddress> configAddrs, long pollConfigIntervalMills) -
Uses of Transcoder in net.rubyeye.xmemcached.command
Fields in net.rubyeye.xmemcached.command declared as TranscoderMethods in net.rubyeye.xmemcached.command that return TranscoderMethods in net.rubyeye.xmemcached.command with parameters of type TranscoderModifier and TypeMethodDescriptionBinaryCommandFactory.createAddCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createAddCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createAddCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createAppendCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createAppendCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createAppendCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createCASCommand
(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createCASCommand
(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createCASCommand
(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createGetCommand
(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) KestrelCommandFactory.createGetCommand
(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) final Command
TextCommandFactory.createGetCommand
(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) <T> Command
BinaryCommandFactory.createGetMultiCommand
(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) <T> Command
KestrelCommandFactory.createGetMultiCommand
(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) final <T> Command
TextCommandFactory.createGetMultiCommand
(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) BinaryCommandFactory.createPrependCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createPrependCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createPrependCommand
(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createReplaceCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createReplaceCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createReplaceCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createSetCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createSetCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final Command
TextCommandFactory.createSetCommand
(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) (package private) final Command
BinaryCommandFactory.createStoreCommand
(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) (package private) final Command
TextCommandFactory.createStoreCommand
(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) void
Command.setTranscoder
(Transcoder transcoder) -
Uses of Transcoder in net.rubyeye.xmemcached.command.binary
Methods in net.rubyeye.xmemcached.command.binary that return TranscoderMethods in net.rubyeye.xmemcached.command.binary with parameters of type TranscoderModifier and TypeMethodDescriptionfinal void
BaseBinaryCommand.setTranscoder
(Transcoder transcoder) Constructors in net.rubyeye.xmemcached.command.binary with parameters of type TranscoderModifierConstructorDescriptionBaseBinaryCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) BinaryAppendPrependCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) BinaryCASCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) BinaryStoreCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) -
Uses of Transcoder in net.rubyeye.xmemcached.command.kestrel
Constructors in net.rubyeye.xmemcached.command.kestrel with parameters of type TranscoderModifierConstructorDescriptionKestrelGetCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, Transcoder<?> transcoder) KestrelSetCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) -
Uses of Transcoder in net.rubyeye.xmemcached.command.text
Methods in net.rubyeye.xmemcached.command.text that return TranscoderMethods in net.rubyeye.xmemcached.command.text with parameters of type TranscoderModifier and TypeMethodDescriptionfinal void
TextStoreCommand.setTranscoder
(Transcoder transcoder) Constructors in net.rubyeye.xmemcached.command.text with parameters of type TranscoderModifierConstructorDescriptionTextCASCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) TextGetMultiCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, Transcoder transcoder) TextStoreCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) -
Uses of Transcoder in net.rubyeye.xmemcached.transcoders
Classes in net.rubyeye.xmemcached.transcoders that implement TranscoderModifier and TypeClassDescriptionfinal class
Transcoder that serializes and unserializes longs.final class
Transcoder that serializes and unserializes longs.class
class
Transcoder that serializes and compresses objects.class
String Transcoderclass
Transcoder for TokyoTyrant.Add 4-bytes flag before value.class
Transcoder that provides compatibility with Greg Whalin's memcached client.class
Handles old whalin (tested with v1.6) encoding: data type is in the first byte of the value.