1 /*******************************************************************************
2 * Copyright 2017 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
13 ******************************************************************************/
17 package org.onap.msb.sdk.httpclient.conf;
19 import com.fasterxml.jackson.annotation.JsonProperty;
25 public class HttpClientConf {
28 private long readTimeout = 180 * 1000;
31 private long connectTimeout = 20 * 1000;
34 private long writeTimeout = 10 * 1000;
37 public long getReadTimeout() {
41 public long getConnectTimeout() {
42 return connectTimeout;
45 public long getWriteTimeout() {
49 public void setReadTimeout(long readTimeout) {
50 this.readTimeout = readTimeout;
53 public void setConnectTimeout(long connectTimeout) {
54 this.connectTimeout = connectTimeout;
57 public void setWriteTimeout(long writeTimeout) {
58 this.writeTimeout = writeTimeout;
62 public int hashCode() {
65 result = prime * result + (int) (connectTimeout ^ (connectTimeout >>> 32));
66 result = prime * result + (int) (readTimeout ^ (readTimeout >>> 32));
67 result = prime * result + (int) (writeTimeout ^ (writeTimeout >>> 32));
72 public boolean equals(Object obj) {
77 if (getClass() != obj.getClass())
79 HttpClientConf other = (HttpClientConf) obj;
80 if (connectTimeout != other.connectTimeout)
82 if (readTimeout != other.readTimeout)
84 if (writeTimeout != other.writeTimeout)