public interface MessageQueueThread
Modifier and Type | Method and Description |
---|---|
void |
assertIsOnThread()
|
void |
assertIsOnThread(java.lang.String message)
|
<T> java.util.concurrent.Future<T> |
callOnQueue(java.util.concurrent.Callable<T> callable)
Runs the given Callable on this Thread.
|
MessageQueueThreadPerfStats |
getPerfStats()
Returns the perf counters taken when the framework was started.
|
boolean |
isOnThread() |
void |
quitSynchronous()
Quits this MessageQueueThread.
|
void |
resetPerfStats()
Resets the perf counters.
|
void |
runOnQueue(java.lang.Runnable runnable)
Runs the given Runnable on this Thread.
|
void runOnQueue(java.lang.Runnable runnable)
<T> java.util.concurrent.Future<T> callOnQueue(java.util.concurrent.Callable<T> callable)
boolean isOnThread()
void assertIsOnThread()
void assertIsOnThread(java.lang.String message)
isOnThread()
, throwing a AssertionException
(NOT an
AssertionError
) if the assertion fails. The given message is appended to the error.void quitSynchronous()
MessageQueueThreadPerfStats getPerfStats()
void resetPerfStats()