Class TimedRequest

    • Field Detail

      • DEFAULT_ACK_TIMEOUT

        public static final TimeValue DEFAULT_ACK_TIMEOUT
      • DEFAULT_MASTER_NODE_TIMEOUT

        public static final TimeValue DEFAULT_MASTER_NODE_TIMEOUT
    • Constructor Detail

      • TimedRequest

        public TimedRequest()
    • Method Detail

      • setTimeout

        public void setTimeout​(TimeValue timeout)
        Sets the timeout to wait for the all the nodes to acknowledge
        Parameters:
        timeout - timeout as a TimeValue
      • setMasterTimeout

        public void setMasterTimeout​(TimeValue masterTimeout)
        Sets the timeout to connect to the master node
        Parameters:
        masterTimeout - timeout as a TimeValue
      • timeout

        public TimeValue timeout()
        Returns the request timeout
      • masterNodeTimeout

        public TimeValue masterNodeTimeout()
        Returns the timeout for the request to be completed on the master node