Package com.datastax.driver.core
Class FramingFormatHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageDecoder<com.datastax.driver.core.Frame>
-
- com.datastax.driver.core.FramingFormatHandler
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
public class FramingFormatHandler extends MessageToMessageDecoder<com.datastax.driver.core.Frame>
A handler to deal with different protocol framing formats.This handler detects when a handshake is successful; then, if necessary, adapts the pipeline to the modern framing format introduced in protocol v5.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecode(ChannelHandlerContext ctx, com.datastax.driver.core.Frame frame, List<Object> out)-
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead, channelReadComplete
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
decode
protected void decode(ChannelHandlerContext ctx, com.datastax.driver.core.Frame frame, List<Object> out) throws Exception
- Specified by:
decodein classMessageToMessageDecoder<com.datastax.driver.core.Frame>- Throws:
Exception
-
-