public List<OperableTrigger> getTriggersForJob(JobKey jobKey, T jedis) throws JobPersistenceException {
        final String jobTriggerSetKey = redisSchema.jobTriggersSetKey(jobKey);
        final Set<String> triggerHashKeys = jedis.smembers(jobTriggerSetKey);
        List<OperableTrigger> triggers = new ArrayList<>();
        for (String triggerHashKey : triggerHashKeys) {
            triggers.add(retrieveTrigger(redisSchema.triggerKey(triggerHashKey), jedis));
        }
        return  triggers;
    }
public List < OperableTrigger > getTriggersForJob ( JobKey jobKey , T jedis ) throws JobPersistenceException { final String jobTriggerSetKey = redisSchema . jobTriggersSetKey ( jobKey ) ; final Set < String > triggerHashKeys = jedis . smembers ( jobTriggerSetKey ) ; List < OperableTrigger > triggers = new ArrayList < > ( ) ; for ( String triggerHashKey : triggerHashKeys ) { triggers . add ( retrieveTrigger ( redisSchema . triggerKey ( triggerHashKey ) , jedis ) ) ; } return triggers ; }
Retrieve triggers associated with the given job
@param jobKey the job for which to retrieve triggers
@param jedis a thread-safe Redis connection
@return a list of triggers associated with the given job