All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.rest.ServiceCallback Maven / Gradle / Ivy

There is a newer version: 1.7.14
Show newest version
/**
 * 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy