Interface Channelizer
- All Superinterfaces:
io.netty.channel.ChannelHandler
- All Known Implementing Classes:
Channelizer.AbstractChannelizer,Channelizer.HttpChannelizer
public interface Channelizer
extends io.netty.channel.ChannelHandler
Client-side channel initializer interface. It is responsible for constructing the Netty
ChannelPipeline
used by the client to connect and send message to Gremlin Server.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBase implementation of the client sideChannelizer.static final classSends requests over the HTTP endpoint.Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(io.netty.channel.Channel channel) Called onConnection.closeAsync()to perform anChannelizerspecific functions.default voidCalled after the channel connects.default StringgetScheme(boolean sslEnabled) Gets the scheme to use to construct the URL and by default uses HTTP.voidinit(org.apache.tinkerpop.gremlin.driver.Connection connection) Initializes theChannelizer.Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Method Details
-
init
void init(org.apache.tinkerpop.gremlin.driver.Connection connection) Initializes theChannelizer. Called just after construction. -
close
void close(io.netty.channel.Channel channel) Called 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. -
connected
default void connected()Called after the channel connects. TheChannelizermay need to perform some functions, such as a handshake. -
getScheme
Gets the scheme to use to construct the URL and by default uses HTTP.
-