Modifier and Type | Field and Description |
---|---|
protected Object |
cb |
protected Ice.Current |
current |
protected Method |
exception |
protected boolean |
isVoid |
protected Method |
response |
Constructor and Description |
---|
Task(Object callback,
Ice.Current current,
boolean isVoid) |
Modifier and Type | Method and Description |
---|---|
protected void |
exception(Throwable ex,
OmeroContext ctx) |
protected Object |
postProcess(Object rv)
Can be overridden to transform the return value from the async method.
|
protected void |
response(Object rv,
OmeroContext ctx)
Calls the response method
|
abstract void |
run(OmeroContext ctx) |
String |
toString() |
protected final Object cb
protected final boolean isVoid
protected final Ice.Current current
protected final Method response
protected final Method exception
public Task(Object callback, Ice.Current current, boolean isVoid)
public abstract void run(OmeroContext ctx)
protected void response(Object rv, OmeroContext ctx)
protected Object postProcess(Object rv) throws omero.ServerError
rv
- a return valueomero.ServerError
- if the transformation failedprotected void exception(Throwable ex, OmeroContext ctx)
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.