![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.rest.v2.ServiceCallback Maven / Gradle / Ivy
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.rest.v2;
/**
* The callback used for client side asynchronous operations.
*
* @param the type of the response
*/
public interface ServiceCallback {
/**
* Override this method to handle REST call failures.
*
* @param t the exception thrown from the pipeline.
*/
void failure(Throwable t);
/**
* Override this method to handle successful REST call results.
*
* @param result the result object.
*/
void success(T result);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy