Class HttpGremlinEndpointHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<RequestMessage>
org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable
public class HttpGremlinEndpointHandler
extends io.netty.channel.SimpleChannelInboundHandler<RequestMessage>
Handler that processes RequestMessage. This handler will attempt to execute the query and stream the results back
in HTTP chunks to the client.
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longLength of time to pause writes in milliseconds when the high watermark is exceeded.static final com.codahale.metrics.MeterTracks the rate of pause to writes when the high watermark is exceeded. -
Constructor Summary
ConstructorsConstructorDescriptionHttpGremlinEndpointHandler(GremlinExecutor gremlinExecutor, GraphManager graphManager, Settings settings, TransactionManager transactionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, RequestMessage requestMessage) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
WRITE_PAUSE_TIME_MS
public static final long WRITE_PAUSE_TIME_MSLength of time to pause writes in milliseconds when the high watermark is exceeded.- See Also:
-
writePausesMeter
public static final com.codahale.metrics.Meter writePausesMeterTracks the rate of pause to writes when the high watermark is exceeded. -
INVALID_PARAMETERS_KEYS
-
-
Constructor Details
-
HttpGremlinEndpointHandler
public HttpGremlinEndpointHandler(GremlinExecutor gremlinExecutor, GraphManager graphManager, Settings settings, TransactionManager transactionManager)
-
-
Method Details
-
channelRead0
- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<RequestMessage>
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-