415e0d947f085dba5449c28f05d56763049c1e8f
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Intel Corp. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.distribution.reception.handling.file;
22
23 /**
24  * This class builds an instance of {@link FileSystemReceptionHandlerConfigurationParameterGroup} class.
25  *
26  */
27 public class FileSystemReceptionHandlerConfigurationParameterBuilder {
28
29     private String watchPath;
30     private int maxThread = 1;
31
32     /**
33      * Set watchPath to this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
34      *
35      * @param watchPath the watchPath
36      */
37     public FileSystemReceptionHandlerConfigurationParameterBuilder setWatchPath(final String watchPath) {
38         this.watchPath = watchPath;
39         return this;
40     }
41
42     /**
43      * Set maxThread to this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
44      *
45      * @param maxThread the max thread number in the thread pool
46      */
47     public FileSystemReceptionHandlerConfigurationParameterBuilder setMaxThread(final int maxThread) {
48         this.maxThread = maxThread;
49         return this;
50     }
51
52     /**
53      * Returns the watchPath of this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
54      *
55      * @return the watchPath
56      */
57     public String getWatchPath() {
58         return watchPath;
59     }
60
61     /**
62      * Returns the maxThread of this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
63      *
64      * @return the maxThread
65      */
66     public int getMaxThread() {
67         return maxThread;
68     }
69 }
70
71