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 TranscoderXMemcachedClient.transcoderprotected TranscoderXMemcachedClientBuilder.transcoderMethods 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 TranscoderXMemcachedClient.getTranscoder()XMemcachedClientBuilder.getTranscoder()Methods in net.rubyeye.xmemcached with parameters of type TranscoderModifier and TypeMethodDescription<T> booleanMemcachedClient.add(String key, int exp, T value, Transcoder<T> transcoder) <T> booleanMemcachedClient.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> booleanXMemcachedClient.add(String key, int exp, T value, Transcoder<T> transcoder) final <T> booleanXMemcachedClient.add(String key, int exp, T value, Transcoder<T> transcoder, long timeout) private <T> booleanXMemcachedClient.add0(String key, int exp, T value, Transcoder<T> transcoder, long timeout) <T> voidMemcachedClient.addWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) <T> voidXMemcachedClient.addWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) private voidXMemcachedClient.buildConnector(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator bufferAllocator, Configuration configuration, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder) <T> booleanMemcachedClient.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> booleanMemcachedClient.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> booleanMemcachedClient.cas(String key, int exp, T value, Transcoder<T> transcoder, long cas) <T> booleanMemcachedClient.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> booleanXMemcachedClient.cas(String key, int exp, CASOperation<T> operation, Transcoder<T> transcoder) final <T> booleanXMemcachedClient.cas(String key, int exp, GetsResponse<T> getsReponse, CASOperation<T> operation, Transcoder<T> transcoder) final <T> booleanXMemcachedClient.cas(String key, int exp, T value, Transcoder<T> transcoder, long cas) final <T> booleanXMemcachedClient.cas(String key, int exp, T value, Transcoder<T> transcoder, long timeout, long cas) private final <T> booleanXMemcachedClient.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> CommandCommandFactory.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> ObjectXMemcachedClient.fetch0(String key, byte[] keyBytes, CommandType cmdType, long timeout, Transcoder<T> transcoder) <T> TMemcachedClient.get(String key, long timeout, Transcoder<T> transcoder) Get value by key<T> TMemcachedClient.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> TXMemcachedClient.get(String key, long timeout, Transcoder<T> transcoder) final <T> TXMemcachedClient.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> ObjectXMemcachedClient.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> booleanMemcachedClient.replace(String key, int exp, T value, Transcoder<T> transcoder) <T> booleanMemcachedClient.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> booleanXMemcachedClient.replace(String key, int exp, T value, Transcoder<T> transcoder) final <T> booleanXMemcachedClient.replace(String key, int exp, T value, Transcoder<T> transcoder, long timeout) <T> voidMemcachedClient.replaceWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) <T> voidXMemcachedClient.replaceWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) private final <T> CommandXMemcachedClient.sendGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) <T> booleanMemcachedClient.set(String key, int exp, T value, Transcoder<T> transcoder) <T> booleanMemcachedClient.set(String key, int exp, T value, Transcoder<T> transcoder, long timeout) Store key-value item to memcachedfinal <T> booleanXMemcachedClient.set(String key, int exp, T value, Transcoder<T> transcoder) final <T> booleanXMemcachedClient.set(String key, int exp, T value, Transcoder<T> transcoder, long timeout) voidMemcachedClient.setTranscoder(Transcoder transcoder) set transcodervoidMemcachedClientBuilder.setTranscoder(Transcoder transcoder) final voidXMemcachedClient.setTranscoder(Transcoder transcoder) voidXMemcachedClientBuilder.setTranscoder(Transcoder transcoder) <T> voidMemcachedClient.setWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) <T> voidXMemcachedClient.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 CommandTextCommandFactory.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 CommandTextCommandFactory.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 CommandTextCommandFactory.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 CommandTextCommandFactory.createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) <T> CommandBinaryCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) <T> CommandKestrelCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) final <T> CommandTextCommandFactory.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 CommandTextCommandFactory.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 CommandTextCommandFactory.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 CommandTextCommandFactory.createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) (package private) final CommandBinaryCommandFactory.createStoreCommand(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) (package private) final CommandTextCommandFactory.createStoreCommand(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) voidCommand.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 voidBaseBinaryCommand.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 voidTextStoreCommand.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 classTranscoder that serializes and unserializes longs.final classTranscoder that serializes and unserializes longs.classclassTranscoder that serializes and compresses objects.classString TranscoderclassTranscoder for TokyoTyrant.Add 4-bytes flag before value.classTranscoder that provides compatibility with Greg Whalin's memcached client.classHandles old whalin (tested with v1.6) encoding: data type is in the first byte of the value.