com.zhibaocloud.carbon.intg.server.sdk.CarbonMessageMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carbon-server-sdk Show documentation
Show all versions of carbon-server-sdk Show documentation
供服务端(数据接收)使用的SDK,封装了和客户端交互的约定细节
/*
* Copyright (c) 2018-2023. Chengdu WeiSiFan Technology Co., Ltd.
* Carbon Integration SDK is licensed under Mulan PSL v2.
*
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package com.zhibaocloud.carbon.intg.server.sdk;
import com.zhibaocloud.carbon.intg.CarbonMessageType;
import java.util.UUID;
/**
* 元数据信息,用于标记数据的来源,接收方(租户)等
*
* @author jun
*/
public class CarbonMessageMeta {
/**
* 请求 ID,可用于重试去重
*/
private UUID requestId;
/**
* 消息类型
*/
private CarbonMessageType type;
/**
* 租户标识
*/
private String tenant; /** * 请求 ID,可用于重试去重 */ public UUID getRequestId() { return this.requestId; } /** * 消息类型 */ public CarbonMessageType getType() { return this.type; } /** * 租户标识 */ public String getTenant() { return this.tenant; } public CarbonMessageMeta(final UUID requestId, final CarbonMessageType type, final String tenant) { this.requestId = requestId; this.type = type; this.tenant = tenant; }
}