你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PollResult<T> Class
- java.
lang. Object - com.
azure. core. management. polling. PollResult<T>
- com.
Type Parameters
- T
the type of the value
public final class PollResult
Type representing result (succeeded or failed result) of a long-running-poll operation.
Constructor Summary
Constructor | Description |
---|---|
PollResult(T value) |
Creates Poll |
PollResult(PollResult.Error error) |
Creates Poll |
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
getError()
Get the error description when poll-operation receives error from service. |
T |
getValue()
Get the service returned value when poll-operation succeeded. |
Methods inherited from java.lang.Object
Constructor Details
PollResult
public PollResult(T value)
Creates PollResult.
Parameters:
PollResult
public PollResult(PollResult.Error error)
Creates PollResult.
Parameters:
Method Details
getError
public PollResult.Error getError()
Get the error description when poll-operation receives error from service.
Returns:
getValue
public T getValue()
Get the service returned value when poll-operation succeeded.
Returns: