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

com.volcengine.service.live.LiveServiceNew Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
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