public Future<Job> save(){
  Objects.requireNonNull(this.type,"Job type cannot be null");
  if (this.id > 0)   return update();
  Future<Job> future=Future.future();
  client.incr(RedisHelper.getKey("ids"),null);
  return future.compose(null);
}

public Future < Job > save ( ) { Objects . requireNonNull ( this . type , "Job type cannot be null" ) ; if ( this . id > 0 ) return update ( ) ; Future < Job > future = Future . future ( ) ; client . incr ( RedisHelper . getKey ( "ids" ) , null ) ; return future . compose ( null ) ; }
save the job to the backend .
