@MetadataScope(outputResolver=PollingSourceMetadataResolver.class) @MediaType(value="text/plain") public class WatermarkingPetAdoptionSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<String,Integer>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
awaitOnItem |
static CountDownLatch |
beginLatch |
protected Integer |
itemsPerPoll |
protected List<String> |
pets |
protected List<Integer> |
watermarks |
| Constructor and Description |
|---|
WatermarkingPetAdoptionSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
onError() |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<String,Integer> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context) |
void |
onSuccess() |
void |
onTerminate() |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<String,Integer> pollContext) |
static void |
resetSource() |
public static CountDownLatch beginLatch
@Parameter @Optional(defaultValue="0") protected Integer awaitOnItem
@Parameter protected Integer itemsPerPoll
@OnSuccess public void onSuccess()
@OnError public void onError()
@OnTerminate public void onTerminate()
protected void doStart()
throws org.mule.runtime.api.exception.MuleException
protected void doStop()
public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<String,Integer> pollContext)
public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<String,Integer> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context)
public static void resetSource()
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.