protected void success(final Job job, final Object runner, final Object result, final String curQueue) {
        try {
            PoolUtils.doWorkInPool(this.jedisPool, new PoolWork<Jedis, Void>() {
                /**
                 * {@inheritDoc}
                 */
                @Override
                public Void doWork(final Jedis jedis) {
                    jedis.incr(key(STAT, PROCESSED));
                    jedis.incr(key(STAT, PROCESSED, name));
                    return null;
                }
            });
        } catch (JedisException je) {
            LOG.warn("Error updating success stats for job=" + job, je);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        this.listenerDelegate.fireEvent(JOB_SUCCESS, this, curQueue, job, runner, result, null);
    }
protected void success ( final Job job , final Object runner , final Object result , final String curQueue ) { try { PoolUtils . doWorkInPool ( this . jedisPool , new PoolWork < Jedis , Void > ( ) { @ Override public Void doWork ( final Jedis jedis ) { jedis . incr ( key ( STAT , PROCESSED ) ) ; jedis . incr ( key ( STAT , PROCESSED , name ) ) ; return null ; } } ) ; } catch ( JedisException je ) { LOG . warn ( "Error updating success stats for job=" + job , je ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } this . listenerDelegate . fireEvent ( JOB_SUCCESS , this , curQueue , job , runner , result , null ) ; }
Update the status in Redis on success.

@param job the Job that succeeded
@param runner the materialized Job
@param result the result of the successful execution of the Job
@param curQueue the queue the Job came from