Interface Channelizer
-
- All Superinterfaces:
io.netty.channel.ChannelHandler
- All Known Implementing Classes:
AbstractChannelizer,HttpChannelizer,UnifiedChannelizer,WebSocketChannelizer,WsAndHttpChannelizer
public interface Channelizer extends io.netty.channel.ChannelHandlerAn interface that makes it possible to plugin different Netty pipelines to Gremlin Server, enabling the use of different protocols, mapper security and other such functions. AChannelizerimplementation can be configured in Gremlin Server with thechannelizersetting in the configuration file.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
AbstractChannelizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjectcreateIdleDetectionMessage()Create a message to send to seemingly dead clients to see if they respond back.voidinit(ServerGremlinExecutor serverGremlinExecutor)This method is called just after theChannelizeris initialized.default booleansupportsIdleMonitor()Determines if the channelizer supports a method for keeping the connection alive and auto-closing zombie channels.
-
-
-
Method Detail
-
init
void init(ServerGremlinExecutor serverGremlinExecutor)
This method is called just after theChannelizeris initialized.
-
createIdleDetectionMessage
default Object createIdleDetectionMessage()
Create a message to send to seemingly dead clients to see if they respond back. The message sent will be dependent on the implementation. For example, a websocket implementation would create a "ping" message. This method will only be used ifsupportsIdleMonitor()istrue.
-
supportsIdleMonitor
default boolean supportsIdleMonitor()
Determines if the channelizer supports a method for keeping the connection alive and auto-closing zombie channels.
-
-