Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
cb |
protected Ice.Current |
current |
protected java.lang.reflect.Method |
exception |
protected boolean |
isVoid |
protected java.lang.reflect.Method |
response |
Constructor and Description |
---|
Task(java.lang.Object callback,
Ice.Current current,
boolean isVoid) |
Modifier and Type | Method and 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 method
|
abstract void |
run(ome.system.OmeroContext ctx) |
java.lang.String |
toString() |
protected final java.lang.Object cb
protected final boolean isVoid
protected final Ice.Current current
protected final java.lang.reflect.Method response
protected final java.lang.reflect.Method exception
public abstract void run(ome.system.OmeroContext ctx)
protected void response(java.lang.Object rv, ome.system.OmeroContext ctx)
protected java.lang.Object postProcess(java.lang.Object rv) throws ServerError
rv
- a return valueServerError
- if the transformation failedprotected void exception(java.lang.Throwable ex, ome.system.OmeroContext ctx)
public java.lang.String toString()
toString
in class java.lang.Object