com.senseidb.search.node.impl
Class CompositeDataConsumer<T>

java.lang.Object
  extended by com.senseidb.search.node.impl.CompositeDataConsumer<T>
All Implemented Interfaces:
proj.zoie.api.DataConsumer<T>

public class CompositeDataConsumer<T>
extends Object
implements proj.zoie.api.DataConsumer<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface proj.zoie.api.DataConsumer
proj.zoie.api.DataConsumer.DataEvent<D>, proj.zoie.api.DataConsumer.MarkerDataEvent<D>
 
Constructor Summary
CompositeDataConsumer(Comparator<String> versionComparator)
           
 
Method Summary
 void addDataConsumer(proj.zoie.api.DataConsumer<T> dataConsumer)
           
 void consume(Collection<proj.zoie.api.DataConsumer.DataEvent<T>> events)
           
 String getVersion()
           
 Comparator<String> getVersionComparator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeDataConsumer

public CompositeDataConsumer(Comparator<String> versionComparator)
Method Detail

addDataConsumer

public void addDataConsumer(proj.zoie.api.DataConsumer<T> dataConsumer)

consume

public void consume(Collection<proj.zoie.api.DataConsumer.DataEvent<T>> events)
             throws proj.zoie.api.ZoieException
Specified by:
consume in interface proj.zoie.api.DataConsumer<T>
Throws:
proj.zoie.api.ZoieException

getVersion

public String getVersion()
Specified by:
getVersion in interface proj.zoie.api.DataConsumer<T>

getVersionComparator

public Comparator<String> getVersionComparator()
Specified by:
getVersionComparator in interface proj.zoie.api.DataConsumer<T>


Copyright © 2010-2012. All Rights Reserved.