void function ( long arg0 ) { if ( timeToWait < - 1 ) { throw new IllegalArgumentException ( ) ; } this . timeToWait = arg0 ; }
set the maximum time to wait for an action to complete set the maximum time to wait for an action to complete before returning control to the invoking application . control is returned when : the action completes or when the timeout if exceeded or when the client is disconnect/shutdown the default value is -1 which means the action will not timeout . in the event of a timeout the action carries on running in the background until it completes . the timeout is used on methods that block while the action is in progress . concode_field_sep MqttAsyncClient aClient concode_elem_sep long timeToWait concode_elem_sep Logger log concode_elem_sep String className concode_field_sep void disconnect concode_elem_sep void disconnect concode_elem_sep String getClientId concode_elem_sep void subscribe concode_elem_sep void subscribe concode_elem_sep void subscribe concode_elem_sep void subscribe concode_elem_sep boolean isConnected concode_elem_sep void setCallback concode_elem_sep MqttTopic getTopic concode_elem_sep String generateClientId concode_elem_sep Debug getDebug concode_elem_sep void unsubscribe concode_elem_sep void unsubscribe concode_elem_sep void publish concode_elem_sep void publish concode_elem_sep long getTimeToWait concode_elem_sep IMqttDeliveryToken[] getPendingDeliveryTokens concode_elem_sep String getServerURI concode_elem_sep void close concode_elem_sep void connect concode_elem_sep void connect