Class Channelizer.AbstractChannelizer

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
org.apache.tinkerpop.gremlin.driver.Channelizer.AbstractChannelizer
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, Channelizer
Direct Known Subclasses:
Channelizer.HttpChannelizer
Enclosing interface:
Channelizer

public abstract static class Channelizer.AbstractChannelizer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> implements Channelizer
Base implementation of the client side Channelizer.
  • Field Details

  • Constructor Details

    • AbstractChannelizer

      public AbstractChannelizer()
  • Method Details

    • supportsSsl

      public boolean supportsSsl()
    • configure

      public abstract void configure(io.netty.channel.ChannelPipeline pipeline)
    • finalize

      public void finalize(io.netty.channel.ChannelPipeline pipeline)
    • close

      public void close(io.netty.channel.Channel channel)
      Description copied from interface: Channelizer
      Called on Connection.closeAsync() to perform an Channelizer specific functions. Note that the Connection already calls Channel.close() so there is no need to call that method here. An implementation will typically use this method to send a Channelizer specific message to the server to notify of shutdown coming from the client side.
      Specified by:
      close in interface Channelizer
    • init

      public void init(org.apache.tinkerpop.gremlin.driver.Connection connection)
      Description copied from interface: Channelizer
      Initializes the Channelizer. Called just after construction.
      Specified by:
      init in interface Channelizer
    • initChannel

      protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
      Specified by:
      initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
    • connected

      public void connected()
      Description copied from interface: Channelizer
      Called after the channel connects. The Channelizer may need to perform some functions, such as a handshake.
      Specified by:
      connected in interface Channelizer