Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* 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.azure.arm.model;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Method;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import rx.Observable;
The base interface for all template interfaces that support execute operations.
Type parameters: - <T> – the type of result produced by the execution.
/**
* The base interface for all template interfaces that support execute operations.
*
* @param <T> the type of result produced by the execution.
*/
@LangDefinition(ContainerName = "ResourceActions", CreateAsyncMultiThreadMethodParam = true)
public interface Executable<T> extends Indexable {
Execute the request.
Returns: execution result object
/**
* Execute the request.
*
* @return execution result object
*/
@Method
T execute();
Execute the request asynchronously.
Returns: the handle to the REST call
/**
* Execute the request asynchronously.
*
* @return the handle to the REST call
*/
@Method
Observable<T> executeAsync();
Execute the request asynchronously.
Params: - callback – the callback for success and failure
Returns: the handle to the REST call
/**
* Execute the request asynchronously.
*
* @param callback the callback for success and failure
* @return the handle to the REST call
*/
ServiceFuture<T> executeAsync(ServiceCallback<T> callback);
}