com.volcengine.service.live.v20230101.LiveService 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.live.v20230101;
import com.volcengine.model.ServiceInfo;
import org.apache.http.HttpHost;
/**
* LiveService
*/
public class LiveService extends LiveTrait {
private LiveService() {
super();
}
private LiveService(ServiceInfo serviceInfo) {
super(serviceInfo);
}
private LiveService(HttpHost proxy) {
super(proxy);
}
static public LiveService getInstance() {
return new LiveService();
}
static public LiveService getInstance(HttpHost proxy) {
return new LiveService(proxy);
}
static public LiveService getInstance(String region) throws Exception {
ServiceInfo serviceInfo = LiveConfig.serviceInfoMap.get(region);
if (serviceInfo == null) {
throw new Exception("Live not support region " + region);
}
return new LiveService(serviceInfo);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy