Class LuaTaskEngine
java.lang.Object
org.infinispan.server.resp.scripting.LuaTaskEngine
- All Implemented Interfaces:
org.infinispan.tasks.spi.TaskEngine
An Infinispan TaskEngine built specifically for executing lua scripts in the context of the resp connector.
It is therefore not a generic task engine or a scripting engine that can be used from Hot Rod or REST.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval
(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, String code, String[] keys, String[] args, long flags) evalSha
(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, String sha, String[] keys, String[] args, long flags) getName()
getTasks()
boolean
<T> CompletionStage
<T> runTask
(String taskName, TaskContext context, BlockingManager blockingManager) scriptExists
(List<String> shas) void
scriptLoad
(String script, boolean persistent) void
shutdown()
-
Constructor Details
-
LuaTaskEngine
-
-
Method Details
-
shutdown
public void shutdown() -
eval
public CompletionStage<Void> eval(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, String code, String[] keys, String[] args, long flags) -
evalSha
public CompletionStage<Void> evalSha(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, String sha, String[] keys, String[] args, long flags) -
scriptLoad
-
scriptExists
-
scriptFlush
public void scriptFlush() -
getName
- Specified by:
getName
in interfaceorg.infinispan.tasks.spi.TaskEngine
-
getTasks
-
runTask
public <T> CompletionStage<T> runTask(String taskName, TaskContext context, BlockingManager blockingManager) - Specified by:
runTask
in interfaceorg.infinispan.tasks.spi.TaskEngine
-
handles
- Specified by:
handles
in interfaceorg.infinispan.tasks.spi.TaskEngine
-