public interface RestPollingSourceStrategy<S extends Serializable,A>
RestPollingSource| Modifier and Type | Method and Description |
|---|---|
List<org.mule.runtime.api.metadata.TypedValue<String>> |
extractItems(Optional<S> lastWatermark,
org.mule.runtime.api.metadata.TypedValue<String> fullResponse,
int statusCode,
String reasonPhrase,
org.mule.runtime.api.util.MultiMap<String,String> headers)
This method gets the list of items from the SaaS response.
|
A |
getItemAttributes(int statusCode,
String reasonPhrase,
org.mule.runtime.api.util.MultiMap<String,String> headers,
org.mule.runtime.api.metadata.TypedValue<String> item)
This method returns the attributes to be set for the item result attributes.
|
String |
getItemIdentity(Optional<S> lastWatermark,
org.mule.runtime.api.metadata.TypedValue<String> payload,
org.mule.runtime.api.metadata.TypedValue<String> item)
This method gets the item identity from the SaaS response having the full response, the individual item and the last
watermark available.
|
S |
getItemWatermark(Optional<S> lastWatermark,
org.mule.runtime.api.metadata.TypedValue<String> payload,
org.mule.runtime.api.metadata.TypedValue<String> item)
This method gets the item watermark from the SaaS response having the full response, the individual item and the last
watermark available.
|
Function<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,A>,Optional<S>> |
getLastWatermark()
This method gets the latest watermark from the poll context to be used as starting point for new responses.
|
S getItemWatermark(Optional<S> lastWatermark, org.mule.runtime.api.metadata.TypedValue<String> payload, org.mule.runtime.api.metadata.TypedValue<String> item)
lastWatermark - latest watermark obtainedpayload - current payload obtained by SaaS responseitem - current itemS watermark defined as generic typeString getItemIdentity(Optional<S> lastWatermark, org.mule.runtime.api.metadata.TypedValue<String> payload, org.mule.runtime.api.metadata.TypedValue<String> item)
lastWatermark - latest watermark obtainedpayload - current payload obtained by SaaS responseitem - current itemString identity as string typeList<org.mule.runtime.api.metadata.TypedValue<String>> extractItems(Optional<S> lastWatermark, org.mule.runtime.api.metadata.TypedValue<String> fullResponse, int statusCode, String reasonPhrase, org.mule.runtime.api.util.MultiMap<String,String> headers)
lastWatermark - latest watermark obtainedfullResponse - current payload obtained by SaaS responsestatusCode - http status code from SaaS responsereasonPhrase - http reason phrase from SaaS responseheaders - http headers from SaaS responseList> list of itemsFunction<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,A>,Optional<S>> getLastWatermark()
PollContext , Optional> identity as string typeA getItemAttributes(int statusCode, String reasonPhrase, org.mule.runtime.api.util.MultiMap<String,String> headers, org.mule.runtime.api.metadata.TypedValue<String> item)
item - current item obtained by SaaS responsestatusCode - http status code from SaaS responsereasonPhrase - http reason phrase from SaaS responseheaders - http headers from SaaS responseA identity as string typeCopyright © 2023. All rights reserved.