T - A - public class PollingSourceWrapper<T,A> extends SourceWrapper<T,A> implements Restartable
SourceWrapper implementation that provides Polling related capabilities to any wrapped Source, like scheduled
polling, watermarking and idempotent processing.| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPTED_ITEM_MESSAGE |
static String |
ACCEPTED_POLL_ITEM_INFORMATION |
static String |
REJECTED_ITEM_MESSAGE |
static String |
WATERMARK_COMPARISON_MESSAGE |
static String |
WATERMARK_NOT_RETURNED_MESSAGE |
static String |
WATERMARK_REMOVED_MESSAGE |
static String |
WATERMARK_RETURNED_MESSAGE |
static String |
WATERMARK_SAVED_MESSAGE |
| Constructor and Description |
|---|
PollingSourceWrapper(org.mule.sdk.api.runtime.source.PollingSource<T,A> delegate,
org.mule.runtime.api.scheduler.SchedulingStrategy scheduler,
int maxItemsPerPoll,
SystemExceptionHandler systemExceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
RestartContext |
beginRestart()
Method that needs to be called when a restart is performed.
|
void |
finishRestart(RestartContext restartContext)
Method that needs to be called to finish the process of restarting.
|
void |
onBackPressure(CoreEvent event,
Map<String,Object> parameters,
org.mule.sdk.api.runtime.source.SourceCallbackContext context,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback) |
void |
onStart(org.mule.sdk.api.runtime.source.SourceCallback<T,A> sourceCallback) |
void |
onStop() |
void |
onTerminate(CoreEvent event,
Map<String,Object> parameters,
org.mule.sdk.api.runtime.source.SourceCallbackContext context,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback) |
getDelegate, onError, onSuccesspublic static final String ACCEPTED_POLL_ITEM_INFORMATION
public static final String REJECTED_ITEM_MESSAGE
public static final String ACCEPTED_ITEM_MESSAGE
public static final String WATERMARK_SAVED_MESSAGE
public static final String WATERMARK_RETURNED_MESSAGE
public static final String WATERMARK_NOT_RETURNED_MESSAGE
public static final String WATERMARK_REMOVED_MESSAGE
public static final String WATERMARK_COMPARISON_MESSAGE
public PollingSourceWrapper(org.mule.sdk.api.runtime.source.PollingSource<T,A> delegate, org.mule.runtime.api.scheduler.SchedulingStrategy scheduler, int maxItemsPerPoll, SystemExceptionHandler systemExceptionHandler)
public void onStart(org.mule.sdk.api.runtime.source.SourceCallback<T,A> sourceCallback) throws org.mule.runtime.api.exception.MuleException
public void onStop()
public void onTerminate(CoreEvent event, Map<String,Object> parameters, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
onTerminate in class SourceWrapper<T,A>public void onBackPressure(CoreEvent event, Map<String,Object> parameters, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
onBackPressure in class SourceWrapper<T,A>public RestartContext beginRestart()
RestartablebeginRestart in interface Restartablepublic void finishRestart(RestartContext restartContext)
RestartablefinishRestart in interface RestartablerestartContext - the context generated by Restartable.beginRestart()Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.