org.mule.tck.functional
Class InvocationCountMessageProcessor
java.lang.Object
org.mule.tck.functional.InvocationCountMessageProcessor
- All Implemented Interfaces:
- Initialisable, MessageProcessor
public class InvocationCountMessageProcessor
- extends Object
- implements MessageProcessor, Initialisable
Test message processor to keep count of number of invocations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationCountMessageProcessor
public InvocationCountMessageProcessor()
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Specified by:
process in interface MessageProcessor
- Throws:
MuleException
setName
public void setName(String name)
initialise
public void initialise()
throws InitialisationException
- Specified by:
initialise in interface Initialisable
- Throws:
InitialisationException
getNumberOfInvocationsFor
public static int getNumberOfInvocationsFor(String componentName)
- Parameters:
componentName - name of the message processor in the configuration
- Returns:
- the number of invocations for the message processor with name componentName
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.