If you think the Android project Android-App-Project___Partner-Finder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Copyright (c) 2013 Google Inc./*www.java2s.com*/
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/package com.google.cloud.backend.core;
import java.io.IOException;
import java.util.List;
/**
* A handler class to handle an asynchronous callback from Cloud Backend. Used
* with {@link CloudBackendAsync} and {@link CloudBackendMessaging}.
*
*/publicabstractclass CloudCallbackHandler<T> {
/**
* Subclasses should override this to implement a handler method to process
* the results. If not overridden, the result will be discarded.
*
* @param results The result value (usually, a {@link CloudEntity} or a
* {@link List} of CloudEntities)
*/publicabstractvoid onComplete(T results);
/**
* Subclasses may override this to implement an exception handler. If not
* overridden, the exception will be ignored.
*
* @param exception {@link IOException} that would be thrown on the request
* call.
*/publicvoid onError(IOException exception) {
}
}