src/main/java/com/redislabs/quartz/RedisJobStore.java
/**
	 * Pause trigger in redis.
	 *
	 * @param triggerKey the trigger key
	 * @param jedis thread-safe redis connection
	 * @throws JobPersistenceException
	 */
Pause trigger in redis.
@param triggerKey the trigger key
@param jedis thread-safe redis connection
@throws JobPersistenceException
Pause trigger in redis . @param triggerKey the trigger key @param jedis thread - safe redis connection @throws JobPersistenceException
private void pauseTrigger(TriggerKey triggerKey, Jedis jedis) throws JobPersistenceException {
		String triggerHashKey = createTriggerHashKey(triggerKey.getGroup(), triggerKey.getName());
		if (!jedis.exists(triggerHashKey))
			throw new JobPersistenceException("trigger: " + triggerHashKey + " does not exist");
		if (jedis.zscore(RedisTriggerState.COMPLETED.getKey(), triggerHashKey) != null)
			return;
		Long nextFireTime = jedis.hget(triggerHashKey, NEXT_FIRE_TIME).isEmpty() ? -1 : Long.parseLong(jedis.hget(triggerHashKey, NEXT_FIRE_TIME));
		if (jedis.zscore(RedisTriggerState.BLOCKED.getKey(), triggerHashKey) != null)
			setTriggerState(RedisTriggerState.PAUSED_BLOCKED, (double)nextFireTime, triggerHashKey);
		else
			setTriggerState(RedisTriggerState.PAUSED, (double)nextFireTime, triggerHashKey);		
	}
private void pauseTrigger ( TriggerKey triggerKey , Jedis jedis ) throws JobPersistenceException { String triggerHashKey = createTriggerHashKey ( triggerKey . getGroup ( ) , triggerKey . getName ( ) ) ; if ( ! jedis . exists ( triggerHashKey ) ) throw new JobPersistenceException ( "trigger: " + triggerHashKey + " does not exist" ) ; if ( jedis . zscore ( RedisTriggerState . COMPLETED . getKey ( ) , triggerHashKey ) != null ) return ; Long nextFireTime = jedis . hget ( triggerHashKey , NEXT_FIRE_TIME ) . isEmpty ( ) ? - 1 : Long . parseLong ( jedis . hget ( triggerHashKey , NEXT_FIRE_TIME ) ) ; if ( jedis . zscore ( RedisTriggerState . BLOCKED . getKey ( ) , triggerHashKey ) != null ) setTriggerState ( RedisTriggerState . PAUSED_BLOCKED , ( double ) nextFireTime , triggerHashKey ) ; else setTriggerState ( RedisTriggerState . PAUSED , ( double ) nextFireTime , triggerHashKey ) ; }
Pause trigger in redis.
Pause trigger in redis .