org.mule.interceptor
Class TimerInterceptor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessor
      extended by org.mule.interceptor.TimerInterceptor
All Implemented Interfaces:
Interceptor, InterceptingMessageProcessor, MessageProcessor, MessageSource

public class TimerInterceptor
extends AbstractInterceptingMessageProcessor
implements Interceptor

TimerInterceptor simply times and displays the time taken to process an event.


Field Summary
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
next
 
Constructor Summary
TimerInterceptor()
           
 
Method Summary
 MuleEvent process(MuleEvent event)
          Invoked when the component should be called.
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
processNext, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Constructor Detail

TimerInterceptor

public TimerInterceptor()
Method Detail

process

public MuleEvent process(MuleEvent event)
                  throws MuleException
Description copied from interface: Interceptor
Invoked when the component should be called. The implementation can call next.process(event) to call the component or the next filer in the chain.

Specified by:
process in interface Interceptor
Specified by:
process in interface MessageProcessor
Parameters:
event - the event containing info about the current message and service
Returns:
A result message that may have been altered by this invocation
Throws:
MuleException


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