org.kuali.rice.ksb.messaging
Class TestCallback

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.TestCallback
All Implemented Interfaces:
Serializable, AsynchronousCallback

public class TestCallback
extends Object
implements AsynchronousCallback

See Also:
Serialized Form

Field Summary
static boolean callbackCalled
           
static List<Long> CURRENT_MILLIS_WHEN_CALLED
           
static int NUMBER_CALL_BACKS
           
static Map<QName,Integer> SERVICE_CALL_COUNT_TRACKED
           
static Map<QName,List<AsynchronousCall>> SERVICES_CALLS_TRACKED
           
 
Constructor Summary
TestCallback()
           
 
Method Summary
 void callback(Serializable returnObject, AsynchronousCall methodCall)
           
static void clearCallbacks()
           
static boolean isCallbackCalled()
           
 void pauseUntilNumberCallbacksUsingStaticCounter(int callbacks, QName serviceName)
          sometimes it's more convenient to use a non static counter above when doing in memory queueing.
static void setCallbackCalled(boolean callbackCalled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callbackCalled

public static boolean callbackCalled

CURRENT_MILLIS_WHEN_CALLED

public static List<Long> CURRENT_MILLIS_WHEN_CALLED

NUMBER_CALL_BACKS

public static int NUMBER_CALL_BACKS

SERVICE_CALL_COUNT_TRACKED

public static Map<QName,Integer> SERVICE_CALL_COUNT_TRACKED

SERVICES_CALLS_TRACKED

public static Map<QName,List<AsynchronousCall>> SERVICES_CALLS_TRACKED
Constructor Detail

TestCallback

public TestCallback()
Method Detail

isCallbackCalled

public static boolean isCallbackCalled()

setCallbackCalled

public static void setCallbackCalled(boolean callbackCalled)

callback

public void callback(Serializable returnObject,
                     AsynchronousCall methodCall)
Specified by:
callback in interface AsynchronousCallback

clearCallbacks

public static void clearCallbacks()

pauseUntilNumberCallbacksUsingStaticCounter

public void pauseUntilNumberCallbacksUsingStaticCounter(int callbacks,
                                                        QName serviceName)
sometimes it's more convenient to use a non static counter above when doing in memory queueing. Other times when doing persistent async messaging a static counter is needed. Everything could be converted to this method if the tests using the above method clear the static count before putting testing against callbacks.

Parameters:
callbacks -
millisDelay -


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.