org.mule.transaction.constraints
Class BatchConstraint

java.lang.Object
  extended by org.mule.transaction.constraints.ConstraintFilter
      extended by org.mule.transaction.constraints.BatchConstraint
All Implemented Interfaces:
Cloneable

public class BatchConstraint
extends ConstraintFilter

BatchConstraint is a filter that counts on every execution and returns true when the batch size value equals the execution count.


Constructor Summary
BatchConstraint()
           
 
Method Summary
 boolean accept(MuleEvent event)
           
 Object clone()
           
 int getBatchSize()
           
 void setBatchSize(int batchSize)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchConstraint

public BatchConstraint()
Method Detail

accept

public boolean accept(MuleEvent event)
Overrides:
accept in class ConstraintFilter

getBatchSize

public int getBatchSize()

setBatchSize

public void setBatchSize(int batchSize)

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class ConstraintFilter
Throws:
CloneNotSupportedException


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