public class TestCallback extends Object implements AsynchronousCallback
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TestCallback() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean callbackCalled
public static List<Long> CURRENT_MILLIS_WHEN_CALLED
public static int NUMBER_CALL_BACKS
public static Map<QName,Integer> SERVICE_CALL_COUNT_TRACKED
public static Map<QName,List<AsynchronousCall>> SERVICES_CALLS_TRACKED
public TestCallback()
public static boolean isCallbackCalled()
public static void setCallbackCalled(boolean callbackCalled)
public void callback(Serializable returnObject, AsynchronousCall methodCall)
callback
in interface AsynchronousCallback
public static void clearCallbacks()
public void pauseUntilNumberCallbacksUsingStaticCounter(int callbacks, QName serviceName)
callbacks
- millisDelay
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.