com.ibm.jbatch.tck.artifacts.specialized
Class MyChunkListener
java.lang.Object
javax.batch.api.AbstractChunkListener
com.ibm.jbatch.tck.artifacts.specialized.MyChunkListener
- All Implemented Interfaces:
- ChunkListener
@Named(value="myChunkListener")
public class MyChunkListener
- extends AbstractChunkListener
|
Method Summary |
void |
afterChunk()
Override this method if the ChunkListener will do something after the
chunk ends. |
void |
beforeChunk()
|
void |
onError()
Override this method if the ChunkListener will do something when an error
occurs, before it is rolled back. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyChunkListener
public MyChunkListener()
beforeChunk
public void beforeChunk()
throws Exception
- Specified by:
beforeChunk in interface ChunkListener- Overrides:
beforeChunk in class AbstractChunkListener
- Throws:
Exception
afterChunk
public void afterChunk()
throws Exception
- Override this method if the ChunkListener will do something after the
chunk ends. The default implementation does nothing.
- Specified by:
afterChunk in interface ChunkListener- Overrides:
afterChunk in class AbstractChunkListener
- Throws:
Exception - (or subclass) if an error occurs.
onError
public void onError()
throws Exception
- Override this method if the ChunkListener will do something when an error
occurs, before it is rolled back. The default implementation does nothing.
- Specified by:
onError in interface ChunkListener- Overrides:
onError in class AbstractChunkListener
- Throws:
Exception - (or subclass) if an error occurs.
Copyright © 2013. All Rights Reserved.