DatiTempiRisposta.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.pdd.core.controllo_traffico;

  21. /**    
  22.  * DatiTempiRisposta
  23.  *
  24.  * @author Poli Andrea (poli@link.it)
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  */
  28. public class DatiTempiRisposta {

  29.     private Integer connectionTimeout;
  30.     private Integer readConnectionTimeout;
  31.     private Integer avgResponseTime;


  32.     @Override
  33.     public String toString(){
  34.         StringBuilder bf = new StringBuilder();
  35.         bf.append("connectionTimeout[").append(this.connectionTimeout).append("]");
  36.         bf.append(" readConnectionTimeout[").append(this.readConnectionTimeout).append("]");
  37.         bf.append(" avgResponseTime[").append(this.avgResponseTime).append("]");
  38.         return bf.toString();
  39.     }
  40.    
  41.     public Integer getConnectionTimeout() {
  42.         return this.connectionTimeout;
  43.     }
  44.     public void setConnectionTimeout(Integer connectionTimeout) {
  45.         this.connectionTimeout = connectionTimeout;
  46.     }
  47.     public Integer getReadConnectionTimeout() {
  48.         return this.readConnectionTimeout;
  49.     }
  50.     public void setReadConnectionTimeout(Integer readConnectionTimeout) {
  51.         this.readConnectionTimeout = readConnectionTimeout;
  52.     }
  53.     public Integer getAvgResponseTime() {
  54.         return this.avgResponseTime;
  55.     }
  56.     public void setAvgResponseTime(Integer avgResponseTime) {
  57.         this.avgResponseTime = avgResponseTime;
  58.     }
  59. }