Class OneToOneStrictEncoder
- java.lang.Object
-
- org.jboss.netty.handler.codec.oneone.OneToOneEncoder
-
- org.jboss.netty.handler.codec.oneone.OneToOneStrictEncoder
-
- All Implemented Interfaces:
ChannelDownstreamHandler
,ChannelHandler
- Direct Known Subclasses:
JdkZlibEncoder
,ZlibEncoder
public abstract class OneToOneStrictEncoder extends OneToOneEncoder
SpecialOneToOneEncoder
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" basedOneToOneEncoder
mostly don't need this, where "stream" based are often in need of it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Constructor Description OneToOneStrictEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doEncode(ChannelHandlerContext ctx, MessageEvent e)
-
Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
encode, handleDownstream
-
-
-
-
Method Detail
-
doEncode
protected boolean doEncode(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
- Overrides:
doEncode
in classOneToOneEncoder
- Throws:
java.lang.Exception
-
-