/** * Returns if the provided packet has lasted longer than the device operation timeout * @return true if the packet has been in the queues for longer than the device operation timeout and false otherwise */ private boolean hasOperationTimedOut(long startTime) { if (startTime == 0) { //Codes_SRS_IOTHUBTRANSPORT_34_077: [If the provided start time is 0, this function shall return false.] return false; } //Codes_SRS_IOTHUBTRANSPORT_34_044: [This function shall return if the provided start time was long enough ago // that it has passed the device operation timeout threshold.] return (System.currentTimeMillis() - startTime) > this.defaultConfig.getOperationTimeout(); }