public class MemcachedDecoder extends AbstractProtocolDecoder<String,byte[]>
| Constructor and Description |
|---|
MemcachedDecoder(AdvancedCache<String,byte[]> memcachedCache,
ScheduledExecutorService scheduler,
NettyTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
protected Metadata |
buildMetadata() |
Object |
createErrorResponse(Throwable t) |
Object |
createGetResponse(String k,
CacheEntry entry) |
RequestHeader |
createHeader() |
Object |
createMultiGetResponse(scala.collection.immutable.Map<String,CacheEntry> pairs) |
Object |
createNotExecutedResponse(byte[] prev) |
Object |
createNotExistResponse() |
protected scala.Tuple2<MemcachedException,Object> |
createServerException(Exception e,
org.jboss.netty.buffer.ChannelBuffer b) |
Object |
createStatsResponse() |
Object |
createSuccessResponse(byte[] prev) |
byte[] |
createValue() |
protected Object |
customDecodeHeader(org.jboss.netty.channel.Channel ch,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected Object |
customDecodeKey(org.jboss.netty.channel.Channel ch,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected Object |
customDecodeValue(org.jboss.netty.channel.Channel ch,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected Object |
get(org.jboss.netty.buffer.ChannelBuffer buffer) |
Cache<String,byte[]> |
getCache() |
scala.Option<Object> |
readHeader(org.jboss.netty.buffer.ChannelBuffer buffer,
RequestHeader header) |
scala.Tuple2<String,Object> |
readKey(org.jboss.netty.buffer.ChannelBuffer b)
Returns the key read along with a boolean indicating whether the
end of the operation was found or not.
|
boolean |
readParameters(org.jboss.netty.channel.Channel ch,
org.jboss.netty.buffer.ChannelBuffer b) |
protected void |
readValue(org.jboss.netty.buffer.ChannelBuffer b) |
cache, channelOpen, checkpointTo, decode, decodeLast, defaultLifespanTime, defaultMaxIdleTime, exceptionCaught, generateVersion, getOptimizedCache, handleModification, header, key, messageReceived, params, rawValue, toMillis, writeComplete, writeResponsecheckpoint, checkpoint, cleanup, decode, decodeLast, getState, internalBuffer, setStateactualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, isUnfold, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationchannelBound, channelConnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, handleUpstreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitEXPIRATION_DEFAULT, EXPIRATION_NONEdebug, debug, debug, debug, debug, debugf, error, info, info, isDebugEnabled, isTraceEnabled, log, logChannelStillBound, logChannelStillConnected, logErrorBeforeReadingRequest, logExceptionReported, logPostingShutdownRequest, logServerDidNotClose, logServerDidNotUnbind, logSettingMasterThreadsNotSupported, logStartWithArgs, trace, trace, trace, trace, tracef, warnpublic MemcachedDecoder(AdvancedCache<String,byte[]> memcachedCache, ScheduledExecutorService scheduler, NettyTransport transport)
public RequestHeader createHeader()
createHeader in class AbstractProtocolDecoder<String,byte[]>public scala.Option<Object> readHeader(org.jboss.netty.buffer.ChannelBuffer buffer, RequestHeader header)
readHeader in class AbstractProtocolDecoder<String,byte[]>public scala.Tuple2<String,Object> readKey(org.jboss.netty.buffer.ChannelBuffer b)
AbstractProtocolDecoderreadKey in class AbstractProtocolDecoder<String,byte[]>protected Object get(org.jboss.netty.buffer.ChannelBuffer buffer)
get in class AbstractProtocolDecoder<String,byte[]>public boolean readParameters(org.jboss.netty.channel.Channel ch,
org.jboss.netty.buffer.ChannelBuffer b)
readParameters in class AbstractProtocolDecoder<String,byte[]>protected void readValue(org.jboss.netty.buffer.ChannelBuffer b)
readValue in class AbstractProtocolDecoder<String,byte[]>public byte[] createValue()
createValue in class AbstractProtocolDecoder<String,byte[]>public Cache<String,byte[]> getCache()
getCache in class AbstractProtocolDecoder<String,byte[]>protected Object customDecodeHeader(org.jboss.netty.channel.Channel ch, org.jboss.netty.buffer.ChannelBuffer buffer)
customDecodeHeader in class AbstractProtocolDecoder<String,byte[]>protected Object customDecodeKey(org.jboss.netty.channel.Channel ch, org.jboss.netty.buffer.ChannelBuffer buffer)
customDecodeKey in class AbstractProtocolDecoder<String,byte[]>protected Object customDecodeValue(org.jboss.netty.channel.Channel ch, org.jboss.netty.buffer.ChannelBuffer buffer)
customDecodeValue in class AbstractProtocolDecoder<String,byte[]>public Object createSuccessResponse(byte[] prev)
createSuccessResponse in class AbstractProtocolDecoder<String,byte[]>public Object createNotExecutedResponse(byte[] prev)
createNotExecutedResponse in class AbstractProtocolDecoder<String,byte[]>public Object createNotExistResponse()
createNotExistResponse in class AbstractProtocolDecoder<String,byte[]>public Object createGetResponse(String k, CacheEntry entry)
createGetResponse in class AbstractProtocolDecoder<String,byte[]>public Object createMultiGetResponse(scala.collection.immutable.Map<String,CacheEntry> pairs)
createMultiGetResponse in class AbstractProtocolDecoder<String,byte[]>public Object createErrorResponse(Throwable t)
createErrorResponse in class AbstractProtocolDecoder<String,byte[]>protected Metadata buildMetadata()
buildMetadata in class AbstractProtocolDecoder<String,byte[]>protected scala.Tuple2<MemcachedException,Object> createServerException(Exception e, org.jboss.netty.buffer.ChannelBuffer b)
public Object createStatsResponse()
createStatsResponse in class AbstractProtocolDecoder<String,byte[]>Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.