Top Description Methods
jakarta.batch.api

public Interface Batchlet

Known Direct Implementers
jakarta.batch.api.AbstractBatchlet

A batchlet is type of batch step that can be used for any type of background processing that does not explicitly call for a chunk oriented approach.

A well-behaved batchlet responds to stop requests by implementing the stop method.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

exit status string
process
()

The process method does the work of the batchlet.

public void
stop()

The stop method is invoked by the batch runtime as part of JobOperator.stop() method processing.

Method Detail

processback to summary
public String process() throws Exception

The process method does the work of the batchlet. If this method throws an exception, the batchlet step ends with a batch status of FAILED.

Returns:String

exit status string

Exceptions
Exception:
if an error occurs.
stopback to summary
public void stop() throws Exception

The stop method is invoked by the batch runtime as part of JobOperator.stop() method processing. This method is invoked on a thread other than the thread on which the batchlet process method is running.

Exceptions
Exception:
if an error occurs.