Java Code Examples for com.google.ipc.invalidation.external.client.types.ErrorInfo#isTransient()

The following examples show how to use com.google.ipc.invalidation.external.client.types.ErrorInfo#isTransient() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InvalidationClientService.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@Override
public void informError(ErrorInfo errorInfo) {
    Log.w(TAG, "Invalidation client error:" + errorInfo);
    if (!errorInfo.isTransient() && sIsClientStarted) {
        // It is important not to stop the client if it is already stopped. Otherwise, the
        // possibility exists to go into an infinite loop if the stop call itself triggers an
        // error (e.g., because no client actually exists).
        stopClient();
    }
}
 
Example 2
Source File: InvalidationService.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public void informError(ErrorInfo errorInfo) {
    Log.w(TAG, "Invalidation client error:" + errorInfo);
    if (!errorInfo.isTransient() && sIsClientStarted) {
        // It is important not to stop the client if it is already stopped. Otherwise, the
        // possibility exists to go into an infinite loop if the stop call itself triggers an
        // error (e.g., because no client actually exists).
        stopClient();
    }
}
 
Example 3
Source File: InvalidationService.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public void informError(ErrorInfo errorInfo) {
    Log.w(TAG, "Invalidation client error:" + errorInfo);
    if (!errorInfo.isTransient() && sIsClientStarted) {
        // It is important not to stop the client if it is already stopped. Otherwise, the
        // possibility exists to go into an infinite loop if the stop call itself triggers an
        // error (e.g., because no client actually exists).
        stopClient();
    }
}