Interface ClientListenerRequestHandler

    • Method Detail

      • writeHandshake

        void writeHandshake​(BinaryWriterExImpl writer)
        Write successful handshake response.
        Parameters:
        writer - Binary writer.
      • isCancellationSupported

        boolean isCancellationSupported()
        Checks whether query cancellation is supported within given version of protocol.
        Returns:
        true if supported, false otherwise.
      • isCancellationCommand

        boolean isCancellationCommand​(int cmdId)
        Detect whether given command is a cancellation command.
        Parameters:
        cmdId - Command Id
        Returns:
        true if given command is cancellation one, false otherwise;
      • registerRequest

        void registerRequest​(long reqId,
                             int cmdType)
        Registers request for futher cancellation if any.
        Parameters:
        reqId - Request Id.
        cmdType - Command Type.
      • unregisterRequest

        void unregisterRequest​(long reqId)
        Try to unregister request.
        Parameters:
        reqId - Request Id.