Package org.swisspush.gateleen.core.lua
Class LuaScriptState
- java.lang.Object
-
- org.swisspush.gateleen.core.lua.LuaScriptState
-
public class LuaScriptState extends Object
Created by webermarca on 01.07.2016.
-
-
Constructor Summary
Constructors Constructor Description LuaScriptState(LuaScript luaScriptType, RedisProvider redisProvider, GateleenExceptionFactory exceptionFactory, boolean logoutput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetLogoutput()StringgetScript()StringgetSha()voidloadLuaScript(RedisCommand redisCommand, int executionCounter)Load the get script into redis and store the sha in the class member sha.voidsetLogoutput(boolean logoutput)voidsetScript(String script)voidsetSha(String sha)
-
-
-
Constructor Detail
-
LuaScriptState
public LuaScriptState(LuaScript luaScriptType, RedisProvider redisProvider, GateleenExceptionFactory exceptionFactory, 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 String getScript()
-
setScript
public void setScript(String script)
-
getLogoutput
public boolean getLogoutput()
-
setLogoutput
public void setLogoutput(boolean logoutput)
-
getSha
public String getSha()
-
setSha
public void setSha(String sha)
-
-