public static < V > Predicate < TaskContext < V > > afterDelay ( long time , TimeUnit timeUnit ) { return ctx -> ( System . currentTimeMillis ( ) - ctx . getStartTime ( ) ) >= timeUnit . toMillis ( time ) ; }
If the task executed time exceeds the specified time the task will stop retry .