public abstract class AbstractChunkListener extends Object implements ChunkListener
Constructor and Description |
---|
AbstractChunkListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterChunk()
Override this method if the ChunkListener
will do something after the chunk ends.
|
void |
beforeChunk()
Override this method if the ChunkListener
will do something before the chunk begins.
|
void |
onError(Exception ex)
Override this method if the ChunkListener will do
something before the chunk transaction is rolled back.
|
public void beforeChunk() throws Exception
beforeChunk
in interface ChunkListener
Exception
- (or subclass) if an error occurs.public void onError(Exception ex) throws Exception
onError
in interface ChunkListener
ex
- specifies the exception that
caused the roll back.Exception
- (or subclass) throw if an error occurs.public void afterChunk() throws Exception
afterChunk
in interface ChunkListener
Exception
- (or subclass) if an error occurs.Copyright © 2016 JBoss by Red Hat. All rights reserved.