public static final class Channelizer.WebSocketChannelizer extends Channelizer.AbstractChannelizer
Channelizer implementation.Channelizer.AbstractChannelizer, Channelizer.NioChannelizer, Channelizer.WebSocketChannelizercluster, connection, PIPELINE_GREMLIN_HANDLER, PIPELINE_GREMLIN_SASL_HANDLER| Constructor and Description |
|---|
WebSocketChannelizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Channel channel)
Sends a
CloseWebSocketFrame to the server for the specified channel. |
void |
configure(ChannelPipeline pipeline) |
void |
connected()
Called after the channel connects.
|
Object |
createKeepAliveMessage()
Create a message for the driver to use as a "keep-alive" for the connection.
|
void |
init(org.apache.tinkerpop.gremlin.driver.Connection connection)
Initializes the
Channelizer. |
boolean |
supportsKeepAlive()
Keep-alive is supported through the ping/pong websocket protocol.
|
boolean |
supportsSsl() |
finalize, initChannelpublic void init(org.apache.tinkerpop.gremlin.driver.Connection connection)
ChannelizerChannelizer. Called just after construction.init in interface Channelizerinit in class Channelizer.AbstractChannelizerpublic boolean supportsKeepAlive()
public Object createKeepAliveMessage()
ChannelizerChannelizer.supportsKeepAlive() is true.public void close(Channel channel)
CloseWebSocketFrame to the server for the specified channel.close in interface Channelizerclose in class Channelizer.AbstractChannelizerpublic boolean supportsSsl()
supportsSsl in class Channelizer.AbstractChannelizerpublic void configure(ChannelPipeline pipeline)
configure in class Channelizer.AbstractChannelizerpublic void connected()
ChannelizerChannelizer may need to perform some functions, such as a
handshake.Copyright © 2013–2016 Apache Software Foundation. All rights reserved.