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