Class GremlinWebSocketHandler

  • All Implemented Interfaces:
    org.springframework.web.socket.WebSocketHandler

    public class GremlinWebSocketHandler
    extends org.springframework.web.socket.handler.BinaryWebSocketHandler
    Websocket handler for accepting and responding to Gremlin queries. This enables an endpoint that acts like a Gremlin server which will run requests on the current Gaffer graph via the GafferPop library.
    • Constructor Detail

      • GremlinWebSocketHandler

        public GremlinWebSocketHandler​(GafferPopGraph graph,
                                       AbstractUserFactory userFactory,
                                       Long requestTimeout)
        Constructor
        Parameters:
        graph - The GafferPopGraph this is initialised to use the correct underlying Gaffer graph.
        userFactory - The user factory.
        requestTimeout - The timeout for gremlin requests.