/*
 * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following
 * disclaimer in the documentation and/or other materials provided with the
 * distribution.
 *
 * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from this 
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package com.smartdevicelink.transport;

import com.smartdevicelink.transport.enums.TransportType;

/**
 * Defines base abstract class for transport configurations.
 */
public abstract class BaseTransportConfig {
	
	protected boolean shareConnection = true;
	protected int iHeartBeatTimeout = Integer.MAX_VALUE;
	/**
	 * Gets transport type for this transport configuration.
	 * 
	 * @return One of {@link TransportType} enumeration values that represents type of this transport configuration.
	 */
	public abstract TransportType getTransportType();	
	
	/**
	 * @deprecated
	 * Indicate whether the application want to share connection with others.
	 * 
	 * @return a boolean if this conneciton should be shared
	 */
	@Deprecated
	public boolean shareConnection() {
		return shareConnection;
	}
	
	public int getHeartBeatTimeout() {
		return iHeartBeatTimeout;
	}		
	
	public void setHeartBeatTimeout(int iTimeout) {
		iHeartBeatTimeout = iTimeout;
	}	
}

@@ -1,10 +1,11 @@
 /*
+%0D
 %0A * Copy
@@ -59,16 +59,17 @@
 um, Inc.
+%0D
 %0A * All 
@@ -84,19 +84,21 @@
 eserved.
+%0D
 %0A *
+%0D
 %0A * Redi
@@ -159,16 +159,17 @@
  without
+%0D
 %0A * modi
@@ -239,19 +239,21 @@
 are met:
+%0D
 %0A *
+%0D
 %0A * Redi
@@ -323,16 +323,17 @@
 ce, this
+%0D
 %0A * list
@@ -376,19 +376,21 @@
 claimer.
+%0D
 %0A *
+%0D
 %0A * Redi
@@ -458,16 +458,17 @@
  notice,
+%0D
 %0A * this
@@ -504,16 +504,17 @@
 ollowing
+%0D
 %0A * disc
@@ -581,16 +581,17 @@
 with the
+%0D
 %0A * dist
@@ -595,27 +595,29 @@
 istribution.
+%0D
 %0A *
+%0D
 %0A * Neither 
@@ -685,16 +685,17 @@
 s of its
+%0D
 %0A * cont
@@ -764,16 +764,17 @@
 om this 
+%0D
 %0A * soft
@@ -820,19 +820,21 @@
 mission.
+%0D
 %0A *
+%0D
 %0A * THIS
@@ -904,16 +904,17 @@
  %22AS IS%22
+%0D
 %0A * AND 
@@ -978,24 +978,25 @@
 ITED TO, THE
+%0D
 %0A * IMPLIED 
@@ -1061,16 +1061,17 @@
  PURPOSE
+%0D
 %0A * ARE 
@@ -1139,16 +1139,17 @@
 UTORS BE
+%0D
 %0A * LIAB
@@ -1211,16 +1211,17 @@
 LARY, OR
+%0D
 %0A * CONS
@@ -1284,16 +1284,17 @@
 EMENT OF
+%0D
 %0A * SUBS
@@ -1361,16 +1361,17 @@
 BUSINESS
+%0D
 %0A * INTE
@@ -1437,16 +1437,17 @@
 ETHER IN
+%0D
 %0A * CONT
@@ -1513,16 +1513,17 @@
 HERWISE)
+%0D
 %0A * ARIS
@@ -1592,16 +1592,17 @@
 D OF THE
+%0D
 %0A * POSS
@@ -1624,20 +1624,22 @@
  DAMAGE.
+%0D
 %0A */
+%0D
 %0Apackage
@@ -1855,55 +1855,8 @@
  %7B%0D%0A
-%09%0D%0A%09protected boolean shareConnection = true;%0D%0A
 %09pro
@@ -2098,16 +2098,16 @@
 %0D%0A%09 */%0D%0A
+
 %09public 
@@ -2152,264 +2152,8 @@
 e();
-%09%0D%0A%09%0D%0A%09/**%0D%0A%09 * @deprecated%0D%0A%09 * Indicate whether the application want to share connection with others.%0D%0A%09 * %0D%0A%09 * @return a boolean if this conneciton should be shared%0D%0A%09 */%0D%0A%09@Deprecated%0D%0A%09public boolean shareConnection() %7B%0D%0A%09%09return shareConnection;%0D%0A%09%7D
 %0D%0A%09%0D

Remove deprecated shareConnection method