sets the `` keep alive '' interval . this value , measured in seconds , defines the maximum time interval between messages sent or received . it enables the client to detect if the server is no longer available , without having to wait for the tcp/ip timeout . the client will ensure that at least one message travels across the network within each keep alive period . in the absence of a data-related message during the time period , the client sends a very small `` ping '' message , which the server will acknowledge . a value of 0 disables keepalive processing in the client . the default value is 60 seconds concode_field_sep int keepAliveInterval concode_elem_sep char[] password concode_elem_sep Properties sslClientProps concode_elem_sep String willDestination concode_elem_sep int KEEP_ALIVE_INTERVAL_DEFAULT concode_elem_sep SocketFactory socketFactory concode_elem_sep boolean cleanSession concode_elem_sep int connectionTimeout concode_elem_sep boolean CLEAN_SESSION_DEFAULT concode_elem_sep int CONNECTION_TIMEOUT_DEFAULT concode_elem_sep MqttMessage willMessage concode_elem_sep String userName concode_field_sep void setPassword concode_elem_sep void setWill concode_elem_sep void setWill concode_elem_sep void setWill concode_elem_sep int getKeepAliveInterval concode_elem_sep String getWillDestination concode_elem_sep void setConnectionTimeout concode_elem_sep boolean isCleanSession concode_elem_sep SocketFactory getSocketFactory concode_elem_sep Properties getSSLProperties concode_elem_sep char[] getPassword concode_elem_sep void setSSLProperties concode_elem_sep Properties getDebug concode_elem_sep void setCleanSession concode_elem_sep void setUserName concode_elem_sep String getUserName concode_elem_sep MqttMessage getWillMessage concode_elem_sep String toString concode_elem_sep void validateWill concode_elem_sep void setSocketFactory concode_elem_sep int getConnectionTimeout
void function ( int arg0 ) { if ( arg0 < 0 ) { throw new IllegalArgumentException ( ) ; } this . keepAliveInterval = arg0 ; }