T - the type of the poll response.public final class PollingContext<T> extends Object
PollerFlux and SyncPoller poller. The context also expose activation and
latest PollResponse.| Modifier and Type | Method and Description |
|---|---|
PollResponse<T> |
getActivationResponse() |
String |
getData(String name)
Get a value from the context with the provided key.
|
PollResponse<T> |
getLatestResponse() |
PollingContext<T> |
setData(String name,
String value)
Set a key-value pair in the context.
|
public String getData(String name)
name - the key to look forpublic PollingContext<T> setData(String name, String value)
name - the keyvalue - the valuepublic PollResponse<T> getActivationResponse()
PollResponse holding result of activation operation call.public PollResponse<T> getLatestResponse()
PollResponse from pollOperation.Copyright © 2021 Microsoft Corporation. All rights reserved.