
com.avos.avoscloud.GenericObjectCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leancloud-common Show documentation
Show all versions of leancloud-common Show documentation
leancloud java sdk common library
The newest version!
package com.avos.avoscloud;
import com.avos.avoscloud.internal.InternalConfigurationController;
public abstract class GenericObjectCallback {
public void onSuccess(String content, AVException e) {}
public void onFailure(int statusCode, Throwable error, String content) {
if (isRetryNeeded(statusCode, error)) {
if (InternalConfigurationController.globalInstance().getInternalLogger().isDebugEnabled()) {
LogUtil.avlog.d("retry this request");
}
retry(error, content);
} else {
onFailure(error, content);
}
}
public void onFailure(Throwable error, String content) {
}
public void onGroupRequestFinished(int left, int total, AVObject object) {
}
public boolean isRetryNeeded(int statusCode, Throwable error) {
return false;
}
public void retry(Throwable error, String content) {
}
public boolean isRequestStatisticNeed() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy