PollingContext<T> Class 
	- java.lang. Object 
- com.azure. core. util. polling. PollingContext<T> 
 
- com.
Type Parameters
- T
- the type of the poll response. 
public final class PollingContext<T>
A key/value store that is propagated between various poll related operations associated with PollerFlux<T,U> and SyncPoller<T,U> poller. The context also expose activation and latest PollResponse<T>.
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| Poll | getActivationResponse() Gets the activation PollResponse<T> holding the result of an activation operation call. | 
| String | getData(String name) Get a value from the context with the provided key. | 
| Poll | getLatestResponse() Gets the latest PollResponse<T> in the polling operation. | 
| Polling | setData(String name, String value) Set a key-value pair in the context. | 
Methods inherited from java.lang.Object
Method Details
getActivationResponse
public PollResponse<T> getActivationResponse()
Gets the activation PollResponse<T> holding the result of an activation operation call.
Returns:
getData
public String getData(String name)
Get a value from the context with the provided key.
Parameters:
Returns:
getLatestResponse
public PollResponse<T> getLatestResponse()
Gets the latest PollResponse<T> in the polling operation.
Returns:
setData
public PollingContext<T> setData(String name, String value)
Set a key-value pair in the context.
Parameters:
Returns: