All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.ots.internal.DescribeTableAsyncResponseConsumer Maven / Gradle / Ivy

package com.aliyun.openservices.ots.internal;

import com.aliyun.openservices.ots.internal.model.ResponseContentWithMeta;
import com.aliyun.openservices.ots.model.DescribeTableResult;
import com.aliyun.openservices.ots.model.OTSResultFactory;
import com.aliyun.openservices.ots.parser.ResultParser;
import com.aliyun.openservices.ots.protocol.OtsProtocol2.DescribeTableResponse;

class DescribeTableAsyncResponseConsumer extends
        OTSAsyncResponseConsumer {

    public DescribeTableAsyncResponseConsumer(ResultParser resultParser,
            OTSTraceLogger traceLogger) {
        super(resultParser, traceLogger);
    }

    @Override
    protected DescribeTableResult parseResult() throws Exception {
        ResponseContentWithMeta responseContent = getResponseContentWithMeta();
        DescribeTableResponse describeTableResponse = (DescribeTableResponse) responseContent
                .getMessage();
        DescribeTableResult result = OTSResultFactory
                .createDescribeTableResult(responseContent,
                        describeTableResponse);
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy