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

com.xiaomi.infra.galaxy.emq.client.EMQConstants Maven / Gradle / Ivy

The newest version!
package com.xiaomi.infra.galaxy.emq.client;

/**
 * Copyright 2015, Xiaomi.
 * All rights reserved.
 * Author: [email protected]
 */

public class EMQConstants {
  /**
   * client端请求超时时间(ms)
   */
  public static final int DEFAULT_CLIENT_TIMEOUT = 60000;

  /**
   * client端连接超时时间(ms)
   */
  public static final int DEFAULT_CLIENT_CONN_TIMEOUT = 30000;

  /**
   * HTTP RPC服务地址
   */
  public static final String DEFAULT_SERVICE_ENDPOINT = "http://emq.api.xiaomi.com";

  /**
   * HTTPS RPC服务地址
   */
  public static final String DEFAULT_SECURE_SERVICE_ENDPOINT = "https://emq.api.xiaomi.com";

  /**
   * Queue操作RPC路径
   */
  public static final String QUEUE_SERVICE_PATH = "/v1/api/queue";

  /**
   * Message操作RPC路径
   */
  public static final String MESSAGE_SERVICE_PATH = "/v1/api/message";

  /**
   * Statistics操作RPC路径
   */
  public static final String STATISTICS_SERVICE_PATH = "/v1/api/statistics";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy