public static final class EConfigure.PauseConfig extends Object
When a connection is paused, the actual connection is
dropped but all the subscriptions and advertisements are
kept in place. That means that system and application
messages destined for the other side are queued, ready
for transmit when the connection is resumed. While all
system messages are queued, the number of queued
application messages may be limited. When that limit
is reached, further application messages are discard as
per the configured EConfigure.DiscardPolicy.
This feature is targeted for eBus-based applications running on mobile devices. Such devices cannot maintain active connections for long without overheating and draining the battery.
| Modifier and Type | Method and Description |
|---|---|
EConfigure.DiscardPolicy |
discardPolicy()
Returns the message discard policy used when the
maximum message backlog size is breached.
|
Duration |
duration()
Returns the maximum allowed pause duration.
|
Duration |
idleTime()
Returns the amount of time wherein no messages are
sent or received on the connection before the
connection is paused.
|
int |
maxBacklogSize()
Returns the maximum allowed message backlog size.
|
Duration |
maxConnectTime()
Returns the maximum time a connection may remain up
before being paused.
|
int |
resumeOnQueueLimit()
Returns the transmit queue limit which triggers an
automatic client connection resumption.
|
String |
toString()
Returns the pause configuration as text.
|
public String toString()
public Duration duration()
public int maxBacklogSize()
public EConfigure.DiscardPolicy discardPolicy()
public Duration idleTime()
public Duration maxConnectTime()
public int resumeOnQueueLimit()
Copyright © 2019. All rights reserved.