public class BlaubotAdapterConfig
extends java.lang.Object
IBlaubotAdapters.| Constructor and Description |
|---|
BlaubotAdapterConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionTimeout()
Max connect duration.
|
int |
getConnectorRetryTimeout() |
float |
getExponentialBackoffFactor() |
int |
getKeepAliveInterval() |
int |
getMaxConnectionRetries()
Max number of connection retries
|
boolean |
isMergeKingdomsActivated() |
void |
setConnectionTimeout(int connectionTimeout)
Sets the max connection time before we timeout.
|
void |
setConnectorRetryTimeout(int connectorRetryTimeout)
The initial timeout to wait if using the exponential backoff method of
BlaubotConnectionManager. |
void |
setExponentialBackoffFactor(float exponentialBackoffFactor)
The factor to be used in the exponential backoff method of
BlaubotConnectionManager. |
void |
setKeepAliveInterval(int keepAliveInterval) |
void |
setMaxConnectionRetries(int maxConnectionRetries)
The global maximum number of retries when connecting to another device via this adapter.
|
void |
setMergeKingdomsActivated(boolean mergeKingdomsActivated)
Set if the merge of kingdoms is activated.
|
public int getKeepAliveInterval()
public void setKeepAliveInterval(int keepAliveInterval)
public int getConnectorRetryTimeout()
public void setConnectorRetryTimeout(int connectorRetryTimeout)
BlaubotConnectionManager.connectorRetryTimeout - the timeout after which a failed connect is retriedpublic float getExponentialBackoffFactor()
public void setExponentialBackoffFactor(float exponentialBackoffFactor)
BlaubotConnectionManager.exponentialBackoffFactor - the backof factorpublic int getMaxConnectionRetries()
public void setMaxConnectionRetries(int maxConnectionRetries)
maxConnectionRetries - the max numer of retriespublic boolean isMergeKingdomsActivated()
public void setMergeKingdomsActivated(boolean mergeKingdomsActivated)
IBlaubotBeacons of devices in PrinceState
will actively try to discover and determine the state of devices nearby and not connected
with their own network.mergeKingdomsActivated - true, if merges should happenpublic int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - the timeout in ms