private int determineHeartbeatInterval(Map properties) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "determineHeartbeatInterval", properties);

        // How often should we heartbeat?
        int heartbeatInterval = JFapChannelConstants.DEFAULT_HEARTBEAT_INTERVAL;
        try {
            //669424: using RuntimeInfo.getPropertyWithMsg as this would log a message
            // when the property is different to the default value passed.
            heartbeatInterval = Integer.parseInt(RuntimeInfo.getPropertyWithMsg(JFapChannelConstants.RUNTIMEINFO_KEY_HEARTBEAT_INTERVAL, "" + heartbeatInterval));
        } catch (NumberFormatException nfe) {
            // No FFDC code needed
        }

        if (properties != null) {
            String intervalStr = (String) properties.get(JFapChannelConstants.CHANNEL_CONFIG_HEARTBEAT_INTERVAL_PROPERTY);
            if (intervalStr != null) {
                try {
                    heartbeatInterval = Integer.parseInt(intervalStr);
                } catch (NumberFormatException nfe) {
                    // No FFDC code needed
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "determineHeartbeatInterval", heartbeatInterval);

        return heartbeatInterval;
    }
private int determineHeartbeatInterval ( Map properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "determineHeartbeatInterval" , properties ) ; int heartbeatInterval = JFapChannelConstants . DEFAULT_HEARTBEAT_INTERVAL ; try { heartbeatInterval = Integer . parseInt ( RuntimeInfo . getPropertyWithMsg ( JFapChannelConstants . RUNTIMEINFO_KEY_HEARTBEAT_INTERVAL , "" + heartbeatInterval ) ) ; } catch ( NumberFormatException nfe ) { } if ( properties != null ) { String intervalStr = ( String ) properties . get ( JFapChannelConstants . CHANNEL_CONFIG_HEARTBEAT_INTERVAL_PROPERTY ) ; if ( intervalStr != null ) { try { heartbeatInterval = Integer . parseInt ( intervalStr ) ; } catch ( NumberFormatException nfe ) { } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "determineHeartbeatInterval" , heartbeatInterval ) ; return heartbeatInterval ; }
begin F196678.10