你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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
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
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
Gets the latest PollResponse<T> in the polling operation.
Returns:
setData
public PollingContext
Set a key-value pair in the context.
Parameters:
Returns:
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈