Package | Description |
---|---|
com.microsoft.azure |
The package contains the runtime classes required for AutoRest generated
Azure clients to compile and function.
|
Modifier and Type | Method and Description |
---|---|
static <T> PollingState<T> |
PollingState.create(retrofit2.Response<okhttp3.ResponseBody> response,
int defaultRetryTimeout,
Type resourceType,
SerializerAdapter<?> serializerAdapter)
Creates a polling state.
|
static <ResultT> PollingState<ResultT> |
PollingState.createFromJSONString(String serializedPollingState)
Creates PollingState from the json string.
|
static <ResultT> PollingState<ResultT> |
PollingState.createFromPollingState(PollingState<?> other,
ResultT result)
Creates PollingState from another polling state.
|
Modifier and Type | Method and Description |
---|---|
<T> rx.Single<PollingState<T>> |
AzureClient.beginPostOrDeleteAsync(rx.Observable<retrofit2.Response<okhttp3.ResponseBody>> observable,
Type resourceType)
Given an observable representing a deferred POST or DELETE action, this method returns
Single object,
when subscribed to it, the deferred action will be performed and emits the polling state containing information
to track the progress of the action. |
<T> rx.Single<PollingState<T>> |
AzureClient.beginPutOrPatchAsync(rx.Observable<retrofit2.Response<okhttp3.ResponseBody>> observable,
Type resourceType)
Given an observable representing a deferred PUT or PATCH action, this method returns
Single object,
when subscribed to it, the deferred action will be performed and emits the polling state containing information
to track the progress of the action. |
<T> rx.Observable<PollingState<T>> |
AzureClient.pollAsync(PollingState<T> pollingState,
Type resourceType)
Given a polling state representing state of an LRO operation, this method returns
Observable object,
when subscribed to it, a series of polling will be performed and emits each polling state to downstream. |
<T> rx.Single<PollingState<T>> |
AzureClient.pollSingleAsync(PollingState<T> pollingState,
Type resourceType)
Given a polling state representing state of a LRO operation, this method returns
Single object,
when subscribed to it, a single poll will be performed and emits the latest polling state. |
Modifier and Type | Method and Description |
---|---|
static <ResultT> PollingState<ResultT> |
PollingState.createFromPollingState(PollingState<?> other,
ResultT result)
Creates PollingState from another polling state.
|
<T> rx.Observable<PollingState<T>> |
AzureClient.pollAsync(PollingState<T> pollingState,
Type resourceType)
Given a polling state representing state of an LRO operation, this method returns
Observable object,
when subscribed to it, a series of polling will be performed and emits each polling state to downstream. |
<T> rx.Single<PollingState<T>> |
AzureClient.pollSingleAsync(PollingState<T> pollingState,
Type resourceType)
Given a polling state representing state of a LRO operation, this method returns
Single object,
when subscribed to it, a single poll will be performed and emits the latest polling state. |
Copyright © 2019. All rights reserved.