Class TimedRequest

    • Constructor Summary

      Constructors 
      Constructor Description
      TimedRequest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensearch.common.unit.TimeValue masterNodeTimeout()
      Returns the timeout for the request to be completed on the master node
      void setMasterTimeout​(org.opensearch.common.unit.TimeValue masterTimeout)
      Sets the timeout to connect to the master node
      void setTimeout​(org.opensearch.common.unit.TimeValue timeout)
      Sets the timeout to wait for the all the nodes to acknowledge
      org.opensearch.common.unit.TimeValue timeout()
      Returns the request timeout
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_ACK_TIMEOUT

        public static final org.opensearch.common.unit.TimeValue DEFAULT_ACK_TIMEOUT
      • DEFAULT_MASTER_NODE_TIMEOUT

        public static final org.opensearch.common.unit.TimeValue DEFAULT_MASTER_NODE_TIMEOUT
    • Constructor Detail

      • TimedRequest

        public TimedRequest()
    • Method Detail

      • setTimeout

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

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

        public org.opensearch.common.unit.TimeValue timeout()
        Returns the request timeout
      • masterNodeTimeout

        public org.opensearch.common.unit.TimeValue masterNodeTimeout()
        Returns the timeout for the request to be completed on the master node