public class AppRouter extends Object
Modifier | Constructor and Description |
---|---|
protected |
AppRouter() |
Modifier and Type | Method and Description |
---|---|
protected cn.leancloud.service.AppAccessEndpoint |
buildDefaultEndpoint(String appId) |
protected void |
clearEndpoints() |
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)
protected void clearEndpoints()
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.