public abstract class AbstractPollingSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<String,NetsuiteSoapAttributes>
| Constructor and Description |
|---|
AbstractPollingSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStop() |
protected <T> Optional<T> |
extractFirstOf(Document node,
List<String> fieldsNameList)
Extracts the value of the first found value
|
protected NetSuiteSoapConfig |
getConfig() |
protected NetSuiteSoapConnection |
getConnection() |
protected org.mule.runtime.api.connection.ConnectionProvider<NetSuiteSoapConnection> |
getConnectionProvider() |
org.mule.runtime.extension.api.client.ExtensionsClient |
getExtensionsClient() |
String |
getIdFieldName() |
protected int |
getPageSize() |
protected abstract IterablePagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> |
getResultsIterator(NetSuiteSoapConnection connection,
ZonedDateTime queryStartDateTime) |
protected ZonedDateTime |
getStartDateTime() |
String |
getWaterMarkFieldName() |
protected boolean |
isBodyFieldsOnly() |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<String,NetsuiteSoapAttributes> pollContext)
TODO: use Sax instead of Xpath
|
protected ZonedDateTime |
resolveNextStartDate(org.mule.runtime.extension.api.runtime.source.PollContext<String,NetsuiteSoapAttributes> pollContext) |
void |
setIdFieldName(String idFieldName) |
void |
setWaterMarkFieldName(String waterMarkFieldName) |
protected Function<Document,Optional<String>> |
watermarkParser()
Function to extract the watermark value
|
public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
onRejectedItem in class org.mule.runtime.extension.api.runtime.source.PollingSource<String,NetsuiteSoapAttributes>protected void doStop()
doStop in class org.mule.runtime.extension.api.runtime.source.PollingSource<String,NetsuiteSoapAttributes>public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<String,NetsuiteSoapAttributes> pollContext)
poll in class org.mule.runtime.extension.api.runtime.source.PollingSource<String,NetsuiteSoapAttributes>pollContext - The poll context to be usedprotected Function<Document,Optional<String>> watermarkParser()
protected <T> Optional<T> extractFirstOf(Document node, List<String> fieldsNameList)
T - the generic type returnednode - xml nodefieldsNameList - list of string field namesprotected abstract IterablePagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> getResultsIterator(NetSuiteSoapConnection connection, ZonedDateTime queryStartDateTime) throws TransformerException, ParserConfigurationException
protected ZonedDateTime resolveNextStartDate(org.mule.runtime.extension.api.runtime.source.PollContext<String,NetsuiteSoapAttributes> pollContext)
protected NetSuiteSoapConfig getConfig()
protected org.mule.runtime.api.connection.ConnectionProvider<NetSuiteSoapConnection> getConnectionProvider()
protected NetSuiteSoapConnection getConnection() throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionExceptionprotected ZonedDateTime getStartDateTime()
protected int getPageSize()
protected boolean isBodyFieldsOnly()
public org.mule.runtime.extension.api.client.ExtensionsClient getExtensionsClient()
public String getIdFieldName()
public void setIdFieldName(String idFieldName)
public String getWaterMarkFieldName()
public void setWaterMarkFieldName(String waterMarkFieldName)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.