Class SimpleTimeoutHandler

java.lang.Object
com.yahoo.search.dispatch.SimpleTimeoutHandler
All Implemented Interfaces:
TimeoutHandler

public class SimpleTimeoutHandler extends Object implements TimeoutHandler
Computes the timeout based solely on the query timeout
Author:
baldersheim
  • Method Details

    • nextTimeoutMS

      public long nextTimeoutMS(int answeredNodes)
      Specified by:
      nextTimeoutMS in interface TimeoutHandler
    • reason

      public int reason()
      Description copied from interface: TimeoutHandler
      Return a bitmask from com.yahoo.container.handler.Coverage.DEGRADED.... set
      Specified by:
      reason in interface TimeoutHandler