9995a236684debbd7b4960d14fe0307bbe442cfe
[so.git] / adapters / mso-adapter-utils / src / main / java / org / onap / so / config / beans / PoConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.config.beans;
22
23 import org.springframework.boot.context.properties.ConfigurationProperties;
24 import org.springframework.context.annotation.Configuration;
25
26 @Configuration
27 @ConfigurationProperties(prefix="org.onap.so.adapters.po")
28 public class PoConfig {
29
30         private String retryCodes;
31         private int retryDelay;
32         private int retryCount;
33         private int pollTimeout;
34         private int pollInterval;
35         
36         public String getRetryCodes() {
37                 return retryCodes;
38         }
39         public void setRetryCodes(String retryCodes) {
40                 this.retryCodes = retryCodes;
41         }
42         public int getRetryDelay() {
43                 return retryDelay;
44         }
45         public void setRetryDelay(int retryDelay) {
46                 this.retryDelay = retryDelay;
47         }
48         public int getRetryCount() {
49                 return retryCount;
50         }
51         public void setRetryCount(int retryCount) {
52                 this.retryCount = retryCount;
53         }
54         public int getPollTimeout() {
55                 return pollTimeout;
56         }
57         public void setPollTimeout(int pollTimeout) {
58                 this.pollTimeout = pollTimeout;
59         }
60         public int getPollInterval() {
61                 return pollInterval;
62         }
63         public void setPollInterval(int pollInterval) {
64                 this.pollInterval = pollInterval;
65         }
66         
67 }