public class RegisterStatusStrategy extends Strategy<RegisterStatus>
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
deviceIdRetry |
protected android.os.Handler |
mainHandler |
protected java.util.concurrent.ScheduledExecutorService |
scheduledExecutorService |
APP_ID, APP_KEY, appId, appKey, context, DEVICE_ERROR_CODE, deviceId, enableRPC, executorService, FEEDBACK_PARAMETER_ERROR_CODE, isSupportRemoteInvoke, PUSH_ID, pushAPI, STRATEGY_CHILD_TYPE, STRATEGY_ClEAR_NOTIFICATION, STRATEGY_PACKAGE_NANME, STRATEGY_PARAMS, STRATEGY_REGISTER, STRATEGY_SUBALIAS, STRATEGY_SUBTAGS, STRATEGY_SWITCH, STRATEGY_SWITCH_SYSTEM_NOTIFICATION, STRATEGY_TYPE, STRATEGY_UNREGISTER, strategyPackageNanme, SUCCESS_CODE, TAG| 构造器和说明 |
|---|
RegisterStatusStrategy(android.content.Context context,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService) |
RegisterStatusStrategy(android.content.Context context,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService,
boolean enableRPC) |
RegisterStatusStrategy(android.content.Context context,
java.lang.String appId,
java.lang.String appKey,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
executeAfterGetDeviceId(long delay)
获取deviceId
|
protected RegisterStatus |
feedBackErrorResponse()
回复错误状态
|
protected RegisterStatus |
localResponse()
组建虚拟成功消息,本地返回
运行在本应用进程中
|
boolean |
matchCondition()
检查参数是否非空
|
RegisterStatus |
netWorkRequest()
网络请求,同步返回
运行在Cloud进程中
|
protected boolean |
retryRegister(java.lang.String pushId,
int expireTime)
是否重新发起订阅请求
0.设备校验
1.pushId校验
2.pushId过期事件校验
|
void |
sendReceiverMessage(RegisterStatus message)
回调消息
|
android.content.Intent |
sendRpcRequest()
请消息发送给远程service
|
protected int |
strategyType()
策略类型
|
findService, getDeviceId, isRegisterStatus, process, processMainThread, sendIntentMessage, sendRpcRequests, setAppId, setAppKey, setExecutorService, setStrategyPackageNanme, setSupportRemoteInvoke, supportServiceRpcprotected android.os.Handler mainHandler
protected java.util.concurrent.ScheduledExecutorService scheduledExecutorService
protected int deviceIdRetry
public RegisterStatusStrategy(android.content.Context context,
java.lang.String appId,
java.lang.String appKey,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService)
public RegisterStatusStrategy(android.content.Context context,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService)
public RegisterStatusStrategy(android.content.Context context,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService,
boolean enableRPC)
public boolean matchCondition()
StrategymatchCondition 在类中 Strategy<RegisterStatus>protected RegisterStatus feedBackErrorResponse()
StrategyfeedBackErrorResponse 在类中 Strategy<RegisterStatus>public android.content.Intent sendRpcRequest()
StrategysendRpcRequest 在类中 Strategy<RegisterStatus>protected RegisterStatus localResponse()
StrategylocalResponse 在类中 Strategy<RegisterStatus>public RegisterStatus netWorkRequest()
StrategynetWorkRequest 在类中 Strategy<RegisterStatus>public void sendReceiverMessage(RegisterStatus message)
StrategysendReceiverMessage 在类中 Strategy<RegisterStatus>protected int strategyType()
StrategystrategyType 在类中 Strategy<RegisterStatus>protected void executeAfterGetDeviceId(long delay)
protected boolean retryRegister(java.lang.String pushId,
int expireTime)