public void abortScheduling ( String requestId , boolean force ) { if ( trace ) { log . tracef ( "Request[%s] abort scheduling" , requestId ) ; } ScheduledRequest scheduledRequest = scheduledRequests . get ( requestId ) ; if ( scheduledRequest != null && ( scheduledRequest . request . isDone ( ) || force ) ) { scheduledRequest . scheduledFuture . cancel ( false ) ; scheduledRequests . remove ( requestId ) ; } }
Aborts the scheduled request . If force is true it will abort even if the request is not completed