org.kuali.rice.ksb.messaging
Class TestCallback
java.lang.Object
org.kuali.rice.ksb.messaging.TestCallback
- All Implemented Interfaces:
- Serializable, AsynchronousCallback
public class TestCallback
- extends Object
- implements AsynchronousCallback
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TestCallback
public TestCallback()
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-2011 The Kuali Foundation. All Rights Reserved.