Package ome.services.throttling
Class Adapter
- java.lang.Object
-
- ome.services.throttling.Task
-
- ome.services.throttling.Adapter
-
public class Adapter extends Task
Simple adapter which takes aExecutor.Workinstance and executes it as aBlitzExecutortask. All exceptions are caught and routed to via theTask.exception(Throwable, OmeroContext)method to the provided callback.
-
-
Constructor Summary
Constructors Constructor Description Adapter(java.lang.Object callback, Ice.Current current, IceMapper mapper, ome.services.util.Executor ex, ome.system.Principal p, ome.services.util.Executor.Work work)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(ome.system.OmeroContext ctx)-
Methods inherited from class ome.services.throttling.Task
exception, postProcess, response, toString
-
-
-
-
Constructor Detail
-
Adapter
public Adapter(java.lang.Object callback, Ice.Current current, IceMapper mapper, ome.services.util.Executor ex, ome.system.Principal p, ome.services.util.Executor.Work work)
-
-
Method Detail
-
run
public void run(ome.system.OmeroContext ctx)
-
-