Top Description Constructors Methods
jakarta.batch.api.chunk.listener

public abstract Class AbstractChunkListener

extends Object
implements ChunkListener
Class Inheritance
All Implemented Interfaces
jakarta.batch.api.chunk.listener.ChunkListener

The AbstractChunkListener provides default implementations of less commonly implemented methods.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterChunk()

Implements jakarta.batch.api.chunk.listener.ChunkListener.afterChunk.

Override this method if the ChunkListener will do something after the chunk ends.

public void
beforeChunk()

Implements jakarta.batch.api.chunk.listener.ChunkListener.beforeChunk.

Override this method if the ChunkListener will do something before the chunk begins.

public void
onError(Exception
specifies the exception that caused the roll back.
ex
)

Implements jakarta.batch.api.chunk.listener.ChunkListener.onError.

Override this method if the ChunkListener will do something before the chunk transaction is rolled back.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractChunkListenerback to summary
public AbstractChunkListener()

Method Detail

afterChunkback to summary
public void afterChunk() throws Exception

Implements jakarta.batch.api.chunk.listener.ChunkListener.afterChunk.

Override this method if the ChunkListener will do something after the chunk ends. The default implementation does nothing.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
beforeChunkback to summary
public void beforeChunk() throws Exception

Implements jakarta.batch.api.chunk.listener.ChunkListener.beforeChunk.

Override this method if the ChunkListener will do something before the chunk begins. The default implementation does nothing.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
onErrorback to summary
public void onError(Exception ex) throws Exception

Implements jakarta.batch.api.chunk.listener.ChunkListener.onError.

Override this method if the ChunkListener will do something before the chunk transaction is rolled back. Note afterChunk is not invoked in this case.

Parameters
ex:Exception

specifies the exception that caused the roll back.

Annotations
@Override
Exceptions
Exception:
(or subclass) throw if an error occurs.