com.volcengine.service.im.ImService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.service.im;
import com.volcengine.model.ServiceInfo;
/**
* ImService
*/
public class ImService extends ImTrait {
private ImService() {
super();
}
private ImService(ServiceInfo serviceInfo) {
super(serviceInfo);
}
static public ImService getInstance() {
return new ImService();
}
static public ImService getInstance(String region) throws Exception {
ServiceInfo serviceInfo = ImConfig.serviceInfoMap.get(region);
if (serviceInfo == null) {
throw new Exception("Im not support region " + region);
}
return new ImService(serviceInfo);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy