akka.testkit
Class JavaTestKit.ReceiveWhile<T>
java.lang.Object
akka.testkit.JavaTestKit.ReceiveWhile<T>
- Enclosing class:
- JavaTestKit
public abstract class JavaTestKit.ReceiveWhile<T>
- extends java.lang.Object
Method Summary |
T[] |
get()
|
protected abstract T |
match(java.lang.Object msg)
|
protected java.lang.RuntimeException |
noMatch()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaTestKit.ReceiveWhile
public JavaTestKit.ReceiveWhile(java.lang.Class<T> clazz)
JavaTestKit.ReceiveWhile
public JavaTestKit.ReceiveWhile(java.lang.Class<T> clazz,
scala.concurrent.duration.Duration max)
JavaTestKit.ReceiveWhile
public JavaTestKit.ReceiveWhile(java.lang.Class<T> clazz,
scala.concurrent.duration.Duration max,
int messages)
JavaTestKit.ReceiveWhile
public JavaTestKit.ReceiveWhile(java.lang.Class<T> clazz,
scala.concurrent.duration.Duration max,
scala.concurrent.duration.Duration idle,
int messages)
match
protected abstract T match(java.lang.Object msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
noMatch
protected java.lang.RuntimeException noMatch()
get
public T[] get()