protected static class LogTest.LatchMessageReader extends Object implements MessageReader
| Modifier and Type | Method and Description |
|---|---|
void |
await(long timeoutMillis)
Blocks until the reader has read the expected number of messages.
|
protected void |
processMessage(Message message)
Subclasses can override this method to perform additional processing on the message.
|
void |
read(Message message) |
void |
updateState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic final void read(Message message)
read in interface MessageReaderpublic void updateState()
updateState in interface MessageReaderprotected void processMessage(Message message)
public void await(long timeoutMillis)
throws InterruptedException
timeoutMillis - the maximum time to wait, in millisecondsAssertionError - if the specified timeout is exceededInterruptedExceptionCopyright © 2012–2024. All rights reserved.