org.mule.transport.polling.watermark.selector
Class MinValueWatermarkSelector

java.lang.Object
  extended by org.mule.transport.polling.watermark.selector.WatermarkSelector
      extended by org.mule.transport.polling.watermark.selector.ComparableWatermarkSelector
          extended by org.mule.transport.polling.watermark.selector.MinValueWatermarkSelector

public class MinValueWatermarkSelector
extends ComparableWatermarkSelector

Implementation of WatermarkSelector that selectes the minimum value of the set. For this to work, received values need to implement the Comparable interface. Values that don't meet this condition will be discarded

Since:
3.5.0

Field Summary
 
Fields inherited from class org.mule.transport.polling.watermark.selector.WatermarkSelector
value
 
Constructor Summary
MinValueWatermarkSelector()
           
 
Method Summary
protected  int comparableQualifier()
          Returns an int value according to the Comparable contract (-1, 0, 1).
 
Methods inherited from class org.mule.transport.polling.watermark.selector.ComparableWatermarkSelector
acceptValue
 
Methods inherited from class org.mule.transport.polling.watermark.selector.WatermarkSelector
getSelectedValue, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinValueWatermarkSelector

public MinValueWatermarkSelector()
Method Detail

comparableQualifier

protected int comparableQualifier()
Description copied from class: ComparableWatermarkSelector
Returns an int value according to the Comparable contract (-1, 0, 1). Then the result of the comparation matches this method's return value, then the selected value is updated

Specified by:
comparableQualifier in class ComparableWatermarkSelector


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.