@MetadataScope(outputResolver=PollingSourceMetadataResolver.class) @MediaType(value="text/plain") public class PetAdoptionSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<String,Void>
| Modifier and Type | Field and Description |
|---|---|
static int |
ADOPTED_PET_COUNT |
static List<String> |
ALL_PETS |
static int |
COMPLETED_POLLS |
static int |
FAILED_ADOPTION_COUNT |
protected boolean |
idempotent |
protected List<String> |
pets |
static int |
REJECTED_ADOPTIONS |
static int |
STARTED_POLLS |
protected boolean |
watermark |
| Constructor and Description |
|---|
PetAdoptionSource() |
| 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,Void> 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,Void> pollContext) |
public static int ADOPTED_PET_COUNT
public static int FAILED_ADOPTION_COUNT
public static int COMPLETED_POLLS
public static int REJECTED_ADOPTIONS
public static int STARTED_POLLS
@Parameter @Optional(defaultValue="false") protected boolean watermark
@Parameter @Optional(defaultValue="false") protected boolean idempotent
protected void doStart()
throws org.mule.runtime.api.exception.MuleException
protected void doStop()
@OnSuccess public void onSuccess()
@OnError public void onError()
@OnTerminate public void onTerminate()
public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<String,Void> pollContext)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.