Class GraphQLWSOptions

    • Field Detail

      • DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT

        public static final long DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
        Default maximum delay in milliseconds for the client to send the CONNECTION_INIT message = 3000.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GraphQLWSOptions

        public GraphQLWSOptions()
        Default constructor.
      • GraphQLWSOptions

        public GraphQLWSOptions​(GraphQLWSOptions other)
        Copy constructor.
        Parameters:
        other - the options to copy
      • GraphQLWSOptions

        public GraphQLWSOptions​(JsonObject json)
        Constructor to create options from JSON.
        Parameters:
        json - the JSON
    • Method Detail

      • toJson

        public JsonObject toJson()
        Returns:
        a JSON representation of these options
      • getConnectionInitWaitTimeout

        public long getConnectionInitWaitTimeout()
        Returns:
        maximum delay in milliseconds for the client to send the CONNECTION_INIT message
      • setConnectionInitWaitTimeout

        public GraphQLWSOptions setConnectionInitWaitTimeout​(long connectionInitWaitTimeout)
        Set the maximum delay in milliseconds for the client to send the CONNECTION_INIT message. Defaults to 3000.
        Parameters:
        connectionInitWaitTimeout - delay in milliseconds
        Returns:
        a reference to this, so the API can be used fluently