use of com.yahoo.documentapi.DocumentResponse in project vespa by vespa-engine.
the class LocalAsyncSession method put.
@Override
public Result put(Document document, DocumentProtocol.Priority pri) {
long req = getNextRequestId();
try {
syncSession.put(new DocumentPut(document), pri);
addResponse(new DocumentResponse(req));
} catch (Exception e) {
addResponse(new DocumentResponse(req, document, e.getMessage(), false));
}
return new Result(req);
}
Aggregations