Interface ExtendedResultDecoder<S extends ExtendedResult>
- Type Parameters:
S
- The type of result.
- All Known Implementing Classes:
AbstractExtendedResultDecoder
public interface ExtendedResultDecoder<S extends ExtendedResult>
A factory interface for decoding a generic extended result as an extended
result of specific type.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeExtendedResult
(ExtendedResult result, DecodeOptions options) Decodes the provided extended operation result as aResult
of typeS
.Returns the typeS
of theExtendedResult
.
-
Method Details
-
decodeExtendedResult
Decodes the provided extended operation result as aResult
of typeS
. This method is called when an extended result is received from the server. The result may indicate success or failure of the extended request.- Parameters:
result
- The extended operation result to be decoded.options
- The set of decode options which should be used when decoding the extended operation result.- Returns:
- The decoded extended operation result.
- Throws:
DecodeException
- If the provided extended operation result could not be decoded. For example, if the request name was wrong, or if the request value was invalid.
-
getExtendedResultClass
Returns the typeS
of theExtendedResult
.- Returns:
- The type
S
of theExtendedResult
.
-