1 package software.amazon.awssdk.crt.s3; 2 3 /** 4 * This class provides access to setting Tcp Keep Alive Options. 5 * If interval or timeout are zero, then default values are used. 6 */ 7 public class S3TcpKeepAliveOptions { 8 9 private short keepAliveIntervalSec; 10 11 private short keepAliveTimeoutSec; 12 13 /* If set, sets the number of keep alive probes allowed to fail before the connection is considered 14 * lost. If zero OS defaults are used. On Windows, this option is meaningless until Windows 10 1703.*/ 15 private short keepAliveMaxFailedProbes; 16 getKeepAliveIntervalSec()17 public short getKeepAliveIntervalSec() { 18 return keepAliveIntervalSec; 19 } 20 setKeepAliveIntervalSec(short keepAliveIntervalSec)21 public void setKeepAliveIntervalSec(short keepAliveIntervalSec) { 22 this.keepAliveIntervalSec = keepAliveIntervalSec; 23 } 24 getKeepAliveTimeoutSec()25 public short getKeepAliveTimeoutSec() { 26 return keepAliveTimeoutSec; 27 } 28 setKeepAliveTimeoutSec(short keepAliveTimeoutSec)29 public void setKeepAliveTimeoutSec(short keepAliveTimeoutSec) { 30 this.keepAliveTimeoutSec = keepAliveTimeoutSec; 31 } 32 getKeepAliveMaxFailedProbes()33 public short getKeepAliveMaxFailedProbes() { 34 return keepAliveMaxFailedProbes; 35 } 36 setKeepAliveMaxFailedProbes(short keepAliveMaxFailedProbes)37 public void setKeepAliveMaxFailedProbes(short keepAliveMaxFailedProbes) { 38 this.keepAliveMaxFailedProbes = keepAliveMaxFailedProbes; 39 } 40 } 41