
com.aliyun.openservices.ots.internal.GetRangeAsyncResponseConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ots-public Show documentation
Show all versions of ots-public Show documentation
Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com
package com.aliyun.openservices.ots.internal;
import com.aliyun.openservices.ots.internal.model.ResponseContentWithMeta;
import com.aliyun.openservices.ots.model.GetRangeResult;
import com.aliyun.openservices.ots.model.OTSResultFactory;
import com.aliyun.openservices.ots.parser.ResultParser;
import com.aliyun.openservices.ots.protocol.OtsProtocol2.GetRangeResponse;
class GetRangeAsyncResponseConsumer extends
OTSAsyncResponseConsumer {
public GetRangeAsyncResponseConsumer(ResultParser resultParser,
OTSTraceLogger traceLogger) {
super(resultParser, traceLogger);
}
@Override
protected GetRangeResult parseResult() throws Exception {
ResponseContentWithMeta responseContent = getResponseContentWithMeta();
GetRangeResponse getRangeResponse = (GetRangeResponse) responseContent
.getMessage();
GetRangeResult result = OTSResultFactory.createGetRangeResult(
responseContent, getRangeResponse);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy