@@ -0,0 +1,1936 @@
+/*%0A * Copyright 2017 Ivaylo Stoyanov %3Cme@ivkos.com%3E%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.ivkos.gpsd4j.client;%0A%0Aimport lombok.*;%0A%0A@Getter%0A@Setter%0A@Builder%0Apublic class GpsdClientOptions%0A%7B%0A   public static final boolean DEFAULT_RECONNECT_ON_DISCONNECT = true;%0A   public static final int DEFAULT_CONNECT_TIMEOUT = 3000;%0A   public static final int DEFAULT_IDLE_TIMEOUT = 120;%0A   public static final int DEFAULT_RECONNECT_ATTEMPTS = Integer.MAX_VALUE;%0A   public static final int DEFAULT_RECONNECT_INTERVAL = 3000;%0A%0A   /**%0A    * Whether to reconnect when the connection to gpsd is lost.%0A    */%0A   @Builder.Default%0A   private boolean reconnectOnDisconnect = DEFAULT_RECONNECT_ON_DISCONNECT;%0A%0A   /**%0A    * The connect timeout, in ms. How long to wait when connecting before giving up.%0A    */%0A   @Builder.Default%0A   private int connectTimeout = DEFAULT_CONNECT_TIMEOUT;%0A%0A   /**%0A    * Idle timeout, in seconds. Zero means don't timeout. This determines if the connection will timeout and be%0A    * closed if no data is received within the timeout.%0A    */%0A   @Builder.Default%0A   private int idleTimeout = DEFAULT_IDLE_TIMEOUT;%0A%0A   /**%0A    * The maximum number of reconnect attempts.%0A    */%0A   @Builder.Default%0A   private int reconnectAttempts = DEFAULT_RECONNECT_ATTEMPTS;%0A%0A   /**%0A    * The reconnect interval, in ms.%0A    */%0A   @Builder.Default%0A   private int reconnectInterval = DEFAULT_RECONNECT_INTERVAL;%0A%7D%0A

Add GpsdClientOptions