com.microsoft.rest.ServiceCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-runtime Show documentation
Show all versions of client-runtime Show documentation
This package contains the basic runtime for AutoRest generated Java clients.
/**
* 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;
/**
* 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);
}