use of alma.ACS.CBDescOut in project ACS by ACS-Community.
the class ResponderUtil method respond.
/**
* @param returnValue
* @param cb
* @param descIn
*/
public static void respond(String returnValue, CBstring cb, CBDescIn descIn) {
Completion completion = ResponderUtil.giveCompletion();
CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
cb.done(returnValue, completion, cbDescOut);
}
use of alma.ACS.CBDescOut in project ACS by ACS-Community.
the class ResponderUtil method respond.
/**
* @param exc
* @param cb
* @param descIn
*/
public static void respond(Exception exc, CBlong cb, CBDescIn descIn) {
Completion completion = ResponderUtil.giveCompletion(exc);
CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
cb.done(-1, completion, cbDescOut);
}
use of alma.ACS.CBDescOut in project ACS by ACS-Community.
the class ResponderUtil method respond.
/**
* @param returnValue
* @param cb
* @param descIn
*/
public static void respond(double returnValue, CBdouble cb, CBDescIn descIn) {
Completion completion = ResponderUtil.giveCompletion();
CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
cb.done(returnValue, completion, cbDescOut);
}
use of alma.ACS.CBDescOut in project ACS by ACS-Community.
the class ResponderUtil method giveDescOut.
public static CBDescOut giveDescOut(CBDescIn descIn) {
CBDescOut ret;
long estimatedTimeout = descIn.normal_timeout;
int id_tag = descIn.id_tag;
ret = new CBDescOut(estimatedTimeout, id_tag);
return ret;
}
use of alma.ACS.CBDescOut in project ACS by ACS-Community.
the class ResponderUtil method respond.
/**
* @param exc
* @param cb
* @param descIn
*/
public static void respond(Exception exc, CBstringSeq cb, CBDescIn descIn) {
Completion completion = ResponderUtil.giveCompletion(exc);
CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
cb.done(new String[] {}, completion, cbDescOut);
}
Aggregations