本文整理了Java中org.rapidoid.job.Jobs.call()
方法的一些代码示例,展示了Jobs.call()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jobs.call()
方法的具体详情如下:
包路径:org.rapidoid.job.Jobs
类名称:Jobs
方法名:call
暂无
代码示例来源:origin: rapidoid/rapidoid
@Override
public void onError(Throwable error) {
Jobs.call(bodyCallback, null, error);
}
代码示例来源:origin: rapidoid/rapidoid
private static <T> Runnable callbackJob(final Callable<T> job, final Callback<T> callback) {
return () -> {
T result;
try {
result = job.call();
} catch (Throwable e) {
call(callback, null, e);
return;
}
call(callback, result, null);
};
}
代码示例来源:origin: rapidoid/rapidoid
@Override
public void onResult(Buf buffer, BufRanges head, BufRanges body) {
Jobs.call(bodyCallback, body.getConcatenated(buffer.bytes(), 0, body.count - 1, ""), null);
}
代码示例来源:origin: org.rapidoid/rapidoid-ctx
@Override
public void run() {
T result;
try {
result = job.call();
} catch (Throwable e) {
call(callback, null, e);
return;
}
call(callback, result, null);
}
};
代码示例来源:origin: org.rapidoid/rapidoid-x-inmem
txRollback();
if (txCallback != null) {
Jobs.call(txCallback, null, e);
txCallback = null;
Jobs.call(txCallback, null, null);
内容来源于网络,如有侵权,请联系作者删除!