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

com.aliyun.openservices.ons.api.SendResult Maven / Gradle / Ivy

There is a newer version: 2.0.7.Final
Show newest version
package com.aliyun.openservices.ons.api;

/**
 * 发送结果.
 */
public class SendResult {
    /**
     * 已发送消息的主题
     */
    private final String topic;
    /**
     * 已发送消息的ID
     */
    private final String messageId;


    public SendResult(String topic, String messageId) {
        this.topic = topic;
        this.messageId = messageId;
    }

    public String getMessageId() {
        return messageId;
    }

    public String getTopic() {
        return topic;
    }

    /**
     * 序列化发送结果.
     *
     * @return 发送结果的String表示.
     */
    @Override
    public String toString() {
        return "SendResult[topic=" + topic + ", messageId=" + messageId + ']';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy