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.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.SharableNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.driver.Channelizer
Channelizer.AbstractChannelizer, Channelizer.HttpChannelizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Clusterprotected org.apache.tinkerpop.gremlin.driver.Connectionprotected AtomicReference<ResultSet>protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected io.netty.handler.ssl.SslHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(io.netty.channel.Channel channel) Called onConnection.closeAsync()to perform anChannelizerspecific functions.abstract voidconfigure(io.netty.channel.ChannelPipeline pipeline) voidCalled after the channel connects.voidfinalize(io.netty.channel.ChannelPipeline pipeline) voidinit(org.apache.tinkerpop.gremlin.driver.Connection connection) Initializes theChannelizer.protected voidinitChannel(io.netty.channel.socket.SocketChannel socketChannel) booleanMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemovedMethods inherited from interface org.apache.tinkerpop.gremlin.driver.Channelizer
getScheme
-
Field Details
-
connection
protected org.apache.tinkerpop.gremlin.driver.Connection connection -
cluster
-
sslHandler
protected io.netty.handler.ssl.SslHandler sslHandler -
pending
-
PIPELINE_GREMLIN_HANDLER
- See Also:
-
PIPELINE_SSL_HANDLER
- See Also:
-
PIPELINE_PROXY_HANDLER
- See Also:
-
PIPELINE_READ_TIMEOUT_HANDLER
- See Also:
-
PIPELINE_IDLE_STATE_HANDLER
- See Also:
-
PIPELINE_IDLE_CONNECTION_HANDLER
- See Also:
-
PIPELINE_HTTP_CODEC
- See Also:
-
PIPELINE_HTTP_AGGREGATOR
- See Also:
-
PIPELINE_HTTP_ENCODER
- See Also:
-
PIPELINE_HTTP_DECODER
- See Also:
-
PIPELINE_HTTP_DECOMPRESSION_HANDLER
- See Also:
-
-
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:ChannelizerCalled onConnection.closeAsync()to perform anChannelizerspecific functions. Note that theConnectionalready callsChannel.close()so there is no need to call that method here. An implementation will typically use this method to send aChannelizerspecific message to the server to notify of shutdown coming from the client side.- Specified by:
closein interfaceChannelizer
-
init
public void init(org.apache.tinkerpop.gremlin.driver.Connection connection) Description copied from interface:ChannelizerInitializes theChannelizer. Called just after construction.- Specified by:
initin interfaceChannelizer
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
connected
public void connected()Description copied from interface:ChannelizerCalled after the channel connects. TheChannelizermay need to perform some functions, such as a handshake.- Specified by:
connectedin interfaceChannelizer
-