org.mule.tck.functional
Class CountdownCallback

java.lang.Object
  extended by org.mule.tck.functional.CountdownCallback
All Implemented Interfaces:
EventCallback

public class CountdownCallback
extends Object
implements EventCallback


Constructor Summary
CountdownCallback(int messagesExpected)
           
 
Method Summary
 boolean await(long timeout)
           
 void eventReceived(MuleEventContext context, Object Component)
           
 long getCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountdownCallback

public CountdownCallback(int messagesExpected)
Method Detail

eventReceived

public void eventReceived(MuleEventContext context,
                          Object Component)
                   throws Exception
Specified by:
eventReceived in interface EventCallback
Throws:
Exception

getCount

public long getCount()
              throws InitialisationException
Throws:
InitialisationException

await

public boolean await(long timeout)
              throws InterruptedException
Throws:
InterruptedException


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