private Future<Job> attemptAdd(){
  Future<Job> future=Future.future();
  String key=RedisHelper.getKey("job:" + this.id);
  if (this.attempts < this.max_attempts) {
    client.hincrby(key,"attempts",1,null);
  }
 else {
    future.complete(this);
  }
  return future;
}

private Future < Job > attemptAdd ( ) { Future < Job > future = Future . future ( ) ; String key = RedisHelper . getKey ( "job:" + this . id ) ; if ( this . attempts < this . max_attempts ) { client . hincrby ( key , "attempts" , 1 , null ) ; } else { future . complete ( this ) ; } return future ; }
attempt once and save attemptadd times to redis backend .
