Class Channelizer.WebSocketChannelizer
- 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
-
- org.apache.tinkerpop.gremlin.driver.Channelizer.WebSocketChannelizer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,Channelizer
- Enclosing interface:
- Channelizer
public static final class Channelizer.WebSocketChannelizer extends Channelizer.AbstractChannelizer
WebSocketChannelizer
implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.driver.Channelizer
Channelizer.AbstractChannelizer, Channelizer.WebSocketChannelizer
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.driver.Channelizer.AbstractChannelizer
cluster, connection, PIPELINE_GREMLIN_HANDLER, PIPELINE_GREMLIN_SASL_HANDLER, PIPELINE_SSL_HANDLER
-
-
Constructor Summary
Constructors Constructor Description WebSocketChannelizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(io.netty.channel.Channel channel)
Sends aCloseWebSocketFrame
to the server for the specified channel.void
configure(io.netty.channel.ChannelPipeline pipeline)
void
connected()
Called after the channel connects.void
init(org.apache.tinkerpop.gremlin.driver.Connection connection)
Initializes theChannelizer
.boolean
supportsSsl()
-
Methods inherited from class org.apache.tinkerpop.gremlin.driver.Channelizer.AbstractChannelizer
finalize, initChannel
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
-
-
-
Method Detail
-
init
public void init(org.apache.tinkerpop.gremlin.driver.Connection connection)
Description copied from interface:Channelizer
Initializes theChannelizer
. Called just after construction.- Specified by:
init
in interfaceChannelizer
- Overrides:
init
in classChannelizer.AbstractChannelizer
-
close
public void close(io.netty.channel.Channel channel)
Sends aCloseWebSocketFrame
to the server for the specified channel.- Specified by:
close
in interfaceChannelizer
- Overrides:
close
in classChannelizer.AbstractChannelizer
-
supportsSsl
public boolean supportsSsl()
- Overrides:
supportsSsl
in classChannelizer.AbstractChannelizer
-
configure
public void configure(io.netty.channel.ChannelPipeline pipeline)
- Specified by:
configure
in classChannelizer.AbstractChannelizer
-
connected
public void connected()
Description copied from interface:Channelizer
Called after the channel connects. TheChannelizer
may need to perform some functions, such as a handshake.
-
-