T - the type of the responsepublic abstract class ServiceCallback<T> extends Object
| Constructor and Description |
|---|
ServiceCallback() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
failure(Throwable t)
Override this method to handle REST call failures.
|
abstract void |
success(T result)
Override this method to handle successful REST call results.
|
public abstract void failure(Throwable t)
t - the exception thrown from the pipeline.public abstract void success(T result)
result - the result object./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/