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
 
   9  *      http://www.apache.org/licenses/LICENSE-2.0
 
  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.
 
  17  * SPDX-License-Identifier: Apache-2.0
 
  18  * ============LICENSE_END=========================================================
 
  21 package org.onap.policy.distribution.reception.handling.file;
 
  24  * This class builds an instance of {@link FileSystemReceptionHandlerConfigurationParameterGroup} class.
 
  27 public class FileSystemReceptionHandlerConfigurationParameterBuilder {
 
  29     private String watchPath;
 
  30     private int maxThread = 1;
 
  33      * Set watchPath to this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
 
  35      * @param watchPath the watchPath
 
  37     public FileSystemReceptionHandlerConfigurationParameterBuilder setWatchPath(final String watchPath) {
 
  38         this.watchPath = watchPath;
 
  43      * Set maxThread to this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
 
  45      * @param maxThread the max thread number in the thread pool
 
  47     public FileSystemReceptionHandlerConfigurationParameterBuilder setMaxThread(final int maxThread) {
 
  48         this.maxThread = maxThread;
 
  53      * Returns the watchPath of this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
 
  55      * @return the watchPath
 
  57     public String getWatchPath() {
 
  62      * Returns the maxThread of this {@link FileSystemReceptionHandlerConfigurationParameterBuilder} instance.
 
  64      * @return the maxThread
 
  66     public int getMaxThread() {