public abstract class OneToOneStrictEncoder extends OneToOneEncoder
OneToOneEncoder
which enforce strict ordering of encoding and writing. This
class should get extend by implementations that needs this enforcement to guaranteer no corruption.
Basically all "message" based OneToOneEncoder
mostly don't need this, where "stream" based
are often in need of it.ChannelHandler.Sharable
Constructor and Description |
---|
OneToOneStrictEncoder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEncode(ChannelHandlerContext ctx,
MessageEvent e) |
encode, handleDownstream
protected boolean doEncode(ChannelHandlerContext ctx, MessageEvent e) throws Exception
doEncode
in class OneToOneEncoder
Exception
Copyright © 2008-2016 The Netty Project. All Rights Reserved.