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

com.byteplus.service.live.v20200801.LiveService Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.byteplus.service.live.v20200801;

import com.byteplus.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