io.github.benas.easybatch.tutorials.jms
Class GreetingJmsReader
java.lang.Object
io.github.benas.easybatch.tutorials.jms.GreetingJmsReader
- All Implemented Interfaces:
- RecordReader
public class GreetingJmsReader
- extends Object
- implements RecordReader
Reader that reads greetings from a JMS queue.
- Author:
- benas (md.benhassine@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GreetingJmsReader
public GreetingJmsReader(int id)
open
public void open()
throws Exception
- Specified by:
open in interface RecordReader
- Throws:
Exception
hasNextRecord
public boolean hasNextRecord()
- Specified by:
hasNextRecord in interface RecordReader
readNextRecord
public Record readNextRecord()
throws Exception
- Specified by:
readNextRecord in interface RecordReader
- Throws:
Exception
getTotalRecords
public Integer getTotalRecords()
- Specified by:
getTotalRecords in interface RecordReader
getDataSourceName
public String getDataSourceName()
- Specified by:
getDataSourceName in interface RecordReader
close
public void close()
throws Exception
- Specified by:
close in interface RecordReader
- Throws:
Exception
Copyright © 2014. All Rights Reserved.