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.| Constructor and Description |
|---|
PollingSourceWrapper(org.mule.runtime.extension.api.runtime.source.PollingSource<T,A> delegate,
Scheduler scheduler) |
| 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.runtime.extension.api.runtime.source.SourceCallbackContext context,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback) |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<T,A> sourceCallback) |
void |
onStop() |
void |
onTerminate(CoreEvent event,
Map<String,Object> parameters,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback) |
getDelegate, onError, onSuccesspublic void onStart(org.mule.runtime.extension.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.runtime.extension.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.runtime.extension.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–2021 MuleSoft, Inc.. All rights reserved.