@NoImplement public interface BatchJobAdapter extends BatchJob, org.mule.runtime.api.component.Component
BatchJob related functionality that we don't want exposed as part of the public API| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_CONCURRENCY |
| Modifier and Type | Method and Description |
|---|---|
com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance |
execute(org.mule.runtime.core.api.event.CoreEvent muleEvent)
Executes the batch and generates a
BatchJobInstance in loading state |
String |
generateJobInstanceId(org.mule.runtime.core.api.event.CoreEvent event)
Generates an id for a
BatchJobInstance to be created per the given event |
BatchEngine |
getBatchEngine() |
BatchJobInstanceSchedulingStrategy |
getBatchJobInstanceSchedulingStrategy() |
int |
getBlockSize()
For performance reasons, batch records are queued and scheduled in blocks.
|
HistoryExpirationPolicy |
getHistoryExpirationPolicy() |
default int |
getMaxConcurrency() |
org.mule.runtime.core.api.MuleContext |
getMuleContext() |
Optional<org.mule.runtime.core.api.processor.Processor> |
getOnCompleteBlock()
The job's on complete block if configured
|
BatchStepAdapter |
getStepById(String stepId)
Returns the step of the given id
|
void |
submitWork(Runnable before,
Runnable work,
Runnable after)
Schedules the given work to be executed.
|
getMaxFailedRecords, getStepsvoid submitWork(Runnable before, Runnable work, Runnable after)
MuleContext is stopped or stopping, or
this job adapter is stopped, then the work is silently discarded and the context is rolled back.before - a callback to be run right before workwork - a javax.resource.spi.work.Workbefore - a callback to be run right after work, in both success and failure cases/com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance execute(org.mule.runtime.core.api.event.CoreEvent muleEvent)
throws org.mule.runtime.api.exception.MuleException
BatchJobInstance in loading statemuleEvent - an instance of CoreEventBatchJobInstanceorg.mule.runtime.api.exception.MuleExceptionOptional<org.mule.runtime.core.api.processor.Processor> getOnCompleteBlock()
Processor or nullBatchStepAdapter getStepById(String stepId)
stepId - the id of a stepBatchStepAdapter{@link - IllegalArgumentException} if no step for the given id exists for this jobBatchJobInstanceSchedulingStrategy getBatchJobInstanceSchedulingStrategy()
BatchEngine getBatchEngine()
int getBlockSize()
String generateJobInstanceId(org.mule.runtime.core.api.event.CoreEvent event)
BatchJobInstance to be created per the given eventevent - a CoreEventStringHistoryExpirationPolicy getHistoryExpirationPolicy()
default int getMaxConcurrency()
org.mule.runtime.core.api.MuleContext getMuleContext()
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.