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

com.zhibaocloud.carbon.intg.server.sdk.CarbonMessageMeta Maven / Gradle / Ivy

Go to download

供服务端(数据接收)使用的SDK,封装了和客户端交互的约定细节

There is a newer version: 1.4.0
Show newest version
/*
 * 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;





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;   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy