public abstract static class Channelizer.AbstractChannelizer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> implements Channelizer
Channelizer.Channelizer.AbstractChannelizer, Channelizer.NioChannelizer, Channelizer.WebSocketChannelizer| Modifier and Type | Field and Description |
|---|---|
protected Cluster |
cluster |
protected org.apache.tinkerpop.gremlin.driver.Connection |
connection |
protected static String |
PIPELINE_GREMLIN_HANDLER |
protected static String |
PIPELINE_GREMLIN_SASL_HANDLER |
| Constructor and Description |
|---|
AbstractChannelizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(io.netty.channel.Channel channel)
Called on
Connection.close() to perform an Channelizer specific functions. |
abstract void |
configure(io.netty.channel.ChannelPipeline pipeline) |
void |
finalize(io.netty.channel.ChannelPipeline pipeline) |
void |
init(org.apache.tinkerpop.gremlin.driver.Connection connection)
Initializes the
Channelizer. |
protected void |
initChannel(io.netty.channel.socket.SocketChannel socketChannel) |
boolean |
supportsSsl() |
channelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, createKeepAliveMessage, supportsKeepAliveprotected org.apache.tinkerpop.gremlin.driver.Connection connection
protected Cluster cluster
protected static final String PIPELINE_GREMLIN_SASL_HANDLER
protected static final String PIPELINE_GREMLIN_HANDLER
public boolean supportsSsl()
public abstract void configure(io.netty.channel.ChannelPipeline pipeline)
public void finalize(io.netty.channel.ChannelPipeline pipeline)
public void close(io.netty.channel.Channel channel)
ChannelizerConnection.close() 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 (e.g. a "close" websocket frame).close in interface Channelizerpublic void init(org.apache.tinkerpop.gremlin.driver.Connection connection)
ChannelizerChannelizer. Called just after construction.init in interface ChannelizerCopyright © 2013–2018 Apache Software Foundation. All rights reserved.