@Override
    public Trigger.TriggerState getTriggerState(TriggerKey triggerKey, JedisCluster jedis) {
        final String triggerHashKey = redisSchema.triggerHashKey(triggerKey);
        Map<RedisTriggerState, Double> scores = new HashMap<>(RedisTriggerState.values().length);
        for (RedisTriggerState redisTriggerState : RedisTriggerState.values()) {
            scores.put(redisTriggerState, jedis.zscore(redisSchema.triggerStateKey(redisTriggerState), triggerHashKey));
        }
        for (Map.Entry<RedisTriggerState, Double> entry : scores.entrySet()) {
            if (entry.getValue() != null) {
                return entry.getKey().getTriggerState();
            }
        }
        return Trigger.TriggerState.NONE;
    }
@ Override public Trigger . TriggerState getTriggerState ( TriggerKey triggerKey , JedisCluster jedis ) { final String triggerHashKey = redisSchema . triggerHashKey ( triggerKey ) ; Map < RedisTriggerState , Double > scores = new HashMap < > ( RedisTriggerState . values ( ) . length ) ; for ( RedisTriggerState redisTriggerState : RedisTriggerState . values ( ) ) { scores . put ( redisTriggerState , jedis . zscore ( redisSchema . triggerStateKey ( redisTriggerState ) , triggerHashKey ) ) ; } for ( Map . Entry < RedisTriggerState , Double > entry : scores . entrySet ( ) ) { if ( entry . getValue ( ) != null ) { return entry . getKey ( ) . getTriggerState ( ) ; } } return Trigger . TriggerState . NONE ; }
Get the current state of the identified <code>{@link Trigger}</code>.

@param triggerKey the key of the desired trigger
@param jedis      a thread-safe Redis connection
@return the state of the trigger