public class KeepaliveConfig
extends java.lang.Object
Settings.getKeepalives()
Constructor and Description |
---|
KeepaliveConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getEnabled() |
java.lang.Boolean |
getEnableLinkMonitorMode()
In Link monitor mode, the reader will monitor keep alive responses from
the SDk and close the connection if they are missed.
|
int |
getLinkDownThreshold()
In Link monitoring mode, this setting determines how many keep alives
can be missed before the connection closes.
|
long |
getPeriodInMs() |
void |
setEnabled(java.lang.Boolean enabled) |
void |
setEnableLinkMonitorMode(java.lang.Boolean enableLinkMonitorMode)
In Link monitor mode, the reader will monitor keep alive responses from
the SDk and close the connection if they are missed.
|
void |
setLinkDownThreshold(int linkDownThreshold)
In Link monitoring mode, this setting determines how many keep alives
can be missed before the connection closes.
|
void |
setPeriodInMs(long periodInMs) |
public java.lang.Boolean getEnabled()
public void setEnabled(java.lang.Boolean enabled)
enabled
- true to enablepublic long getPeriodInMs()
public void setPeriodInMs(long periodInMs)
periodInMs
- how long in between reader keepalivespublic java.lang.Boolean getEnableLinkMonitorMode()
public void setEnableLinkMonitorMode(java.lang.Boolean enableLinkMonitorMode)
enableLinkMonitorMode
- true if link monitor mode is enabledpublic int getLinkDownThreshold()
public void setLinkDownThreshold(int linkDownThreshold)
linkDownThreshold
- the number of keepalives that can be missed before close