org.mule.interceptor
Class TimerInterceptor

java.lang.Object
  extended by org.mule.interceptor.TimerInterceptor
All Implemented Interfaces:
Interceptor

public class TimerInterceptor
extends Object
implements Interceptor

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


Constructor Summary
TimerInterceptor()
           
 
Method Summary
 MuleMessage intercept(Invocation invocation)
          Invoked when the component should be called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerInterceptor

public TimerInterceptor()
Method Detail

intercept

public MuleMessage intercept(Invocation invocation)
                      throws MuleException
Description copied from interface: Interceptor
Invoked when the component should be called. The implementation can call Invocation#execute() to call the component.

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


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.