public class ImmutableMetadataResult extends Object implements MetadataCache.MetadataResult
MetadataCache.MetadataResult.| Constructor and Description |
|---|
ImmutableMetadataResult(Boolean success,
Serializable result,
List<MetadataFailure> failures)
Creates an instance of this object.
|
| Modifier and Type | Method and Description |
|---|---|
List<MetadataFailure> |
getFailures()
If
this#isSuccess is false, then a MetadataFailure instance is provided
in order to describe the error that occurred during the invocation. |
Serializable |
getResult() |
boolean |
isSuccess() |
public ImmutableMetadataResult(Boolean success, Serializable result, List<MetadataFailure> failures)
success - true if the metadata resolved was correctly fetched. Non null.result - the metadata result (serialized). Non null.failures - the failures in case if the metadata fetched resulted in an error.public boolean isSuccess()
isSuccess in interface MetadataCache.MetadataResulttrue if the metadata resolved was correctly fetched.public List<MetadataFailure> getFailures()
MetadataCache.MetadataResultthis#isSuccess is false, then a MetadataFailure instance is provided
in order to describe the error that occurred during the invocation.getFailures in interface MetadataCache.MetadataResultList of MetadataFailures describing the errors that occurred during the invocation
if at least one occurred.public Serializable getResult()
getResult in interface MetadataCache.MetadataResultCopyright © 2019 MuleSoft, Inc.. All rights reserved.