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 voidexception(java.lang.Throwable ex, ome.system.OmeroContext ctx)protected java.lang.ObjectpostProcess(java.lang.Object rv)Can be overridden to transform the return value from the async method.protected voidresponse(java.lang.Object rv, ome.system.OmeroContext ctx)Calls the response methodabstract voidrun(ome.system.OmeroContext ctx)java.lang.StringtoString()
-
-
-
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 ServerErrorCan 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:
toStringin classjava.lang.Object
-
-