io.github.benas.easybatch.tutorials.jms
Class GreetingJmsReader

java.lang.Object
  extended by 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)

Constructor Summary
GreetingJmsReader(int id)
           
 
Method Summary
 void close()
           
 String getDataSourceName()
           
 Integer getTotalRecords()
           
 boolean hasNextRecord()
           
 void open()
           
 Record readNextRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreetingJmsReader

public GreetingJmsReader(int id)
Method Detail

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.