DevinXin / galaxy-sdk-java

Java SDK for Xiaomi Structured Datastore Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Galaxy Java SDK User Guide

Including SDKs of XiaoMi SDS, EMQ, EMR, and Talos.

INSTALLATION

  • If using maven to management, you can just depend latest jars from maven central repository.
  • Checkout to the newest release and use its version in dependency.

  • Use corresponding SDK artifactId.

  • For example, to use EMQ,

    <dependency>
      <groupId>com.xiaomi.infra.galaxy</groupId>
      <artifactId>galaxy-emq-client</artifactId>
      <version>1.2.7</version>
    </dependency>

NOTICE

  • HttpClient of our SDKs support multi-thread, if you need greater concurrency, you can create your own HttpClient and pass it to the constructor of class ClientFactory. (References and examples in galaxy-client-java, sds-android-examples): ClientFactory(Credential credential, HttpClient httpClient)

  • When compiling sds-android-examples, you must install Android SDK and set environment variable ANDROID_HOME to the install path of Android SDK before. Our examples used Android SDK API Level 19.

About

Java SDK for Xiaomi Structured Datastore Service

License:Apache License 2.0


Languages

Language:Java 91.8%Language:Scala 5.3%Language:Thrift 2.6%Language:Shell 0.2%