IPWorks MQ 2020 Android Edition

Questions / Feedback?

IncomingHeartbeat Property

Specifies the server-to-component heartbeat timing.

Syntax

public int getIncomingHeartbeat();
public void setIncomingHeartbeat(int incomingHeartbeat);

Remarks

This property specifies the incoming heartbeat interval, which is the number of seconds without any server-to-component communication that the server will allow to elapse before sending the component a heartbeat (keepalive). If set to 0 (default), incoming heartbeats are disabled.

For information about outgoing (component-to-server) heartbeats; see the OutgoingHeartbeat property.

Before Connecting

Before connecting, this property is used to specify the desired incoming heartbeat interval (in seconds). By default, this property is set to 0 (no heartbeat).

During the connection process, the incoming heartbeat interval requested by the component is compared to the minimum interval supported by the server, and the larger of the two values is selected. If one or both sides supply 0 as their value, then no server-to-component heartbeats will be sent.

After Connecting

After connecting, this property cannot be set. Instead, it reflects the incoming heartbeat interval agreed upon by the component and the server during the connection process.

As the incoming heartbeat interval negotiation notes above imply, it is possible that the agreed-upon incoming heartbeat interval may either be larger than what the component requested, or may be 0 (i.e., incoming heartbeats are disabled).

This property is not available at design time.

Default Value

0

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 Android Edition - Version 20.0 [Build 8155]