/** * Closes a command consumer for a device. * <p> * If no command consumer for the device is open, this method does nothing. * * @param tenantId The tenant that the device belongs to. * @param deviceId The identifier of the device. */ protected final void closeCommandConsumer(final String tenantId, final String deviceId) { getCommandConnection().closeCommandConsumer(tenantId, deviceId).otherwise(t -> { LOG.warn("cannot close command consumer [tenant-id: {}, device-id: {}]: {}", tenantId, deviceId, t.getMessage()); return null; }); }
/** * Closes a command consumer for a device. * <p> * If no command consumer for the device is open, this method does nothing. * * @param tenantId The tenant that the device belongs to. * @param deviceId The identifier of the device. */ protected final void closeCommandConsumer(final String tenantId, final String deviceId) { getCommandConnection().closeCommandConsumer(tenantId, deviceId).otherwise(t -> { LOG.warn("cannot close command consumer [tenant-id: {}, device-id: {}]: {}", tenantId, deviceId, t.getMessage()); return null; }); }