Package ome.services.throttling
Class Task
- java.lang.Object
-
- ome.services.throttling.Task
-
-
Constructor Summary
Constructors Constructor Description Task(java.lang.Object callback, Ice.Current current, boolean isVoid)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
exception(java.lang.Throwable ex, ome.system.OmeroContext ctx)
protected java.lang.Object
postProcess(java.lang.Object rv)
Can be overridden to transform the return value from the async method.protected void
response(java.lang.Object rv, ome.system.OmeroContext ctx)
Calls the response methodabstract void
run(ome.system.OmeroContext ctx)
java.lang.String
toString()
-
-
-
Method Detail
-
run
public abstract void run(ome.system.OmeroContext ctx)
-
response
protected void response(java.lang.Object rv, ome.system.OmeroContext ctx)
Calls the response method
-
postProcess
protected java.lang.Object postProcess(java.lang.Object rv) throws ServerError
Can be overridden to transform the return value from the async method. This implementation leaves the return value unchanged.- Parameters:
rv
- a return value- Returns:
- the return value transformed
- Throws:
ServerError
- if the transformation failed
-
exception
protected void exception(java.lang.Throwable ex, ome.system.OmeroContext ctx)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-