public void cancel ( ) { if ( runnableFuture != null && ! runnableFuture . isCancelled ( ) ) { log . debugf ( "Cancelling outbound transfer to node %s, segments %s" , destination , segments ) ; runnableFuture . cancel ( true ) ; } }
Cancel the whole task .