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
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기