Class AbstractRedisStateUpdater<T extends State>

    • Constructor Detail

      • AbstractRedisStateUpdater

        public AbstractRedisStateUpdater​(RedisStoreMapper storeMapper)
        Constructor.
        Parameters:
        storeMapper - mapper for storing
    • Method Detail

      • setExpireInterval

        public void setExpireInterval​(int expireIntervalSec)
        Sets expire (time to live) if needed.
        Parameters:
        expireIntervalSec - time to live in seconds
      • updateStatesToRedis

        protected abstract void updateStatesToRedis​(T state,
                                                    Map<String,​String> keyToValue)
        Updates (key, value) pairs to Redis.
        Parameters:
        state - State for handling query
        keyToValue - (key, value) pairs