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

com.volcengine.service.im.ImService Maven / Gradle / Ivy

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