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: