private void rescheduleRtcp ( TxTask task , long timestamp ) { // Cancel current execution of the task this . reportTaskFuture . cancel ( true ) ; // Re-schedule task execution long interval = resolveInterval ( timestamp ) ; try { this . reportTaskFuture = this . scheduler . schedule ( task , interval , TimeUnit . MILLISECONDS ) ; } catch ( IllegalStateException e ) { logger . warn ( "RTCP timer already canceled. Scheduled report was canceled and cannot be re-scheduled." ) ; } }
Re - schedules a previously scheduled event .