public final class BinaryMemcacheClientCodec extends ChannelHandlerAppender
BinaryMemcacheResponseDecoder
and the BinaryMemcacheRequestEncoder
.
Optionally, it counts the number of outstanding responses and raises an exception if - on connection
close - the list is not 0 (this is turned off by default). You can also define a chunk size for the
content, which defaults to 8192. This chunk size is the maximum, so if smaller chunks arrive they
will be passed up the pipeline and not queued up to the chunk size.ChannelHandler.Sharable, ChannelHandler.Skip
Constructor and Description |
---|
BinaryMemcacheClientCodec()
Create a new
BinaryMemcacheClientCodec with the default settings applied. |
BinaryMemcacheClientCodec(int decodeChunkSize)
Create a new
BinaryMemcacheClientCodec and set a custom chunk size. |
BinaryMemcacheClientCodec(int decodeChunkSize,
boolean failOnMissingResponse)
Create a new
BinaryMemcacheClientCodec with custom settings. |
add, add, add, add, handlerAdded, handlerAt
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerRemoved, isSharable, read, userEventTriggered, write
public BinaryMemcacheClientCodec()
BinaryMemcacheClientCodec
with the default settings applied.public BinaryMemcacheClientCodec(int decodeChunkSize)
BinaryMemcacheClientCodec
and set a custom chunk size.decodeChunkSize
- the maximum chunk size.public BinaryMemcacheClientCodec(int decodeChunkSize, boolean failOnMissingResponse)
BinaryMemcacheClientCodec
with custom settings.decodeChunkSize
- the maximum chunk size.failOnMissingResponse
- report if after close there are outstanding requests.Copyright © 2008–2015 The Netty Project. All rights reserved.