Interface Channelizer
- 
- All Superinterfaces:
- io.netty.channel.ChannelHandler
 - All Known Implementing Classes:
- Channelizer.AbstractChannelizer,- Channelizer.HttpChannelizer,- Channelizer.WebSocketChannelizer
 
 public interface Channelizer extends io.netty.channel.ChannelHandlerClient-side channel initializer interface. It is responsible for constructing the NettyChannelPipelineused by the client to connect and send message to Gremlin Server.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classChannelizer.AbstractChannelizerBase implementation of the client sideChannelizer.static classChannelizer.HttpChannelizerSends requests over the HTTP endpoint.static classChannelizer.WebSocketChannelizerWebSocketChannelizerimplementation.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose(io.netty.channel.Channel channel)Called onConnection.closeAsync()to perform anChannelizerspecific functions.default voidconnected()Called 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.
 
- 
- 
- 
Method Detail- 
initvoid init(org.apache.tinkerpop.gremlin.driver.Connection connection) Initializes theChannelizer. Called just after construction.
 - 
closevoid 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 (e.g. a "close" websocket frame).
 - 
connecteddefault void connected() Called after the channel connects. TheChannelizermay need to perform some functions, such as a handshake.
 - 
getSchemedefault String getScheme(boolean sslEnabled) Gets the scheme to use to construct the URL and by default uses HTTP.
 
- 
 
-