Getting started Community Training Tutorials Documentation APIs, AI & Tools
/**
* [...]
*
* @param <T> the generic type of the output value
* @param <A> the generic type of the message attributes
* @since 1.4
*/
@MinMuleVersion("4.4")
public interface SampleDataProvider<T, A> {
/**
* An ID that identifies each implementation of this interface. It must be unique among implementations in the same
* extension. Subsequent invocations must always return the same fixed value.
*
* @return the resolver's id
*/
String getId();
/**
* Obtains and returns the sample information.
*
* @return a {@link Result} object
* @throws SampleDataException if the sample cannot be obtained
*/
Result<T, A> getSample() throws SampleDataException;
}



