io.github.benas.easybatch.tutorials.products
Class ProductProcessor

java.lang.Object
  extended by io.github.benas.easybatch.tutorials.products.ProductProcessor
All Implemented Interfaces:
RecordProcessor<Product,Double>

public class ProductProcessor
extends Object
implements RecordProcessor<Product,Double>

A product processor that calculates the maximum product price for published products.

Author:
benas (md.benhassine@gmail.com)

Constructor Summary
ProductProcessor()
           
 
Method Summary
 Double getEasyBatchResult()
           
 void processRecord(Product product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductProcessor

public ProductProcessor()
Method Detail

processRecord

public void processRecord(Product product)
                   throws Exception
Specified by:
processRecord in interface RecordProcessor<Product,Double>
Throws:
Exception

getEasyBatchResult

public Double getEasyBatchResult()
Specified by:
getEasyBatchResult in interface RecordProcessor<Product,Double>


Copyright © 2014. All Rights Reserved.