public void closeNow() throws IOException { //Codes_SRS_INTERNALCLIENT_21_008: [The closeNow shall closeNow the deviceIO connection.] this.deviceIO.close(); }
/** * Completes all current outstanding requests and closes the IoT Hub client. * Must be called to terminate the background thread that is sending data to * IoT Hub. After {@code close()} is called, the IoT Hub client is no longer * usable. If the client is already closed, the function shall do nothing. * * @throws IOException if the connection to an IoT Hub cannot be closed. */ public void multiplexClose() throws IOException { // Codes_SRS_DEVICE_IO_12_009: [THe function shall call close().] close(); }
public void close() throws IOException { while (!this.deviceIO.isEmpty()) { // Don't do anything, can be infinite. } //Codes_SRS_INTERNALCLIENT_21_042: [The closeNow shall closeNow the deviceIO connection.] this.deviceIO.close(); }
this.deviceIO.close(); this.deviceIO.open();
this.getDeviceIO().close(); this.getDeviceIO().open();