Package ch.tatool.core.element.handler.timeout

Examples of ch.tatool.core.element.handler.timeout.DefaultAdaptiveTimeoutHandler


  /**
   * Controls the adaptive timer according to the performance of the user.
   */
  private void adaptTimer(ExecutionContext event, int mode) {
    for (int i = 0; i < timeoutHandlers.size(); i++) {
      DefaultAdaptiveTimeoutHandler timeoutHandler = timeoutHandlers
          .get(i);
      switch (mode) {
      case INCREASE:
        timeoutHandler.increaseTimeoutDuration(event);
        break;
      case REDUCE:
        timeoutHandler.decreaseTimeoutDuration(event);
        break;
      case ADAPT:
        timeoutHandler.adaptTimeoutDuration(event);
        break;
      case RESET:
        if (timeoutHandler.isResetTimerDuration()) {
          timeoutHandler.resetTimeoutDuration(event);
        }
        break;
      default:
        break;
      }
View Full Code Here


  /**
   * Controls the adaptive timer according to the performance of the user.
   */
  private void adaptTimer(ExecutionContext event, int mode) {
    for (int i = 0; i < timeoutHandlers.size(); i++) {
      DefaultAdaptiveTimeoutHandler timeoutHandler = timeoutHandlers
          .get(i);
      switch (mode) {
      case INCREASE:
        timeoutHandler.increaseTimeoutDuration(event);
        break;
      case REDUCE:
        timeoutHandler.decreaseTimeoutDuration(event);
        break;
      case ADAPT:
        timeoutHandler.adaptTimeoutDuration(event);
        break;
      case RESET:
        if (timeoutHandler.isResetTimerDuration()) {
          timeoutHandler.resetTimeoutDuration(event);
        }
        break;
      default:
        break;
      }
View Full Code Here

TOP

Related Classes of ch.tatool.core.element.handler.timeout.DefaultAdaptiveTimeoutHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.