com.aliyun.openservices.ots.internal.GetRowAsyncResponseConsumer Maven / Gradle / Ivy
package com.aliyun.openservices.ots.internal;
import com.aliyun.openservices.ots.internal.model.ResponseContentWithMeta;
import com.aliyun.openservices.ots.model.GetRowResult;
import com.aliyun.openservices.ots.model.OTSResultFactory;
import com.aliyun.openservices.ots.parser.ResultParser;
import com.aliyun.openservices.ots.protocol.OtsProtocol2.GetRowResponse;
class GetRowAsyncResponseConsumer extends
OTSAsyncResponseConsumer {
public GetRowAsyncResponseConsumer(ResultParser resultParser,
OTSTraceLogger traceLogger) {
super(resultParser, traceLogger);
}
@Override
protected GetRowResult parseResult()
throws Exception {
ResponseContentWithMeta responseContent = getResponseContentWithMeta();
GetRowResponse getRowResponse = (GetRowResponse) responseContent
.getMessage();
GetRowResult result = OTSResultFactory.createGetRowResult(
responseContent, getRowResponse);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy