public class AppRouter extends Object
限定符 | 构造器和说明 |
---|---|
protected |
AppRouter() |
限定符和类型 | 方法和说明 |
---|---|
protected cn.leancloud.service.AppAccessEndpoint |
buildDefaultEndpoint(String appId) |
io.reactivex.Observable<cn.leancloud.service.RTMConnectionServerResponse> |
fetchRTMConnectionServer(String routerHost,
String appId,
String installationId,
int secure,
boolean forceUpdate) |
io.reactivex.Observable<cn.leancloud.service.AppAccessEndpoint> |
fetchServerHostsInBackground(String appId) |
void |
freezeEndpoint(LeanService service,
String host) |
static LeanCloud.REGION |
getAppRegion(String applicationId) |
io.reactivex.Observable<String> |
getEndpoint(String appId,
LeanService service) |
static AppRouter |
getInstance() |
protected String |
getPersistenceKeyZone(String appId,
boolean forAPIEndpoints) |
boolean |
hasFrozenEndpoint() |
public static AppRouter getInstance()
public static LeanCloud.REGION getAppRegion(String applicationId)
protected cn.leancloud.service.AppAccessEndpoint buildDefaultEndpoint(String appId)
public boolean hasFrozenEndpoint()
public void freezeEndpoint(LeanService service, String host)
public io.reactivex.Observable<String> getEndpoint(String appId, LeanService service)
public io.reactivex.Observable<cn.leancloud.service.AppAccessEndpoint> fetchServerHostsInBackground(String appId)
public io.reactivex.Observable<cn.leancloud.service.RTMConnectionServerResponse> fetchRTMConnectionServer(String routerHost, String appId, String installationId, int secure, boolean forceUpdate)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.