Class LuaScriptState


  • public class LuaScriptState
    extends java.lang.Object
    Created by webermarca on 01.07.2016.
    • Constructor Summary

      Constructors 
      Constructor Description
      LuaScriptState​(LuaScript luaScriptType, io.vertx.redis.RedisClient redisClient, boolean logoutput)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getLogoutput()  
      java.lang.String getScript()  
      java.lang.String getSha()  
      void loadLuaScript​(RedisCommand redisCommand, int executionCounter)
      Load the get script into redis and store the sha in the class member sha.
      void setLogoutput​(boolean logoutput)  
      void setScript​(java.lang.String script)  
      void setSha​(java.lang.String sha)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LuaScriptState

        public LuaScriptState​(LuaScript luaScriptType,
                              io.vertx.redis.RedisClient redisClient,
                              boolean logoutput)
    • Method Detail

      • loadLuaScript

        public void loadLuaScript​(RedisCommand redisCommand,
                                  int executionCounter)
        Load the get script into redis and store the sha in the class member sha.
        Parameters:
        redisCommand - the redis command that should be executed, after the script is loaded.
        executionCounter - a counter to control recursion depth
      • getScript

        public java.lang.String getScript()
      • setScript

        public void setScript​(java.lang.String script)
      • getLogoutput

        public boolean getLogoutput()
      • setLogoutput

        public void setLogoutput​(boolean logoutput)
      • getSha

        public java.lang.String getSha()
      • setSha

        public void setSha​(java.lang.String sha)