Class TestInboxImpl<T>
- java.lang.Object
-
- akka.actor.testkit.typed.javadsl.TestInbox<T>
-
- akka.actor.testkit.typed.internal.TestInboxImpl<T>
-
-
Constructor Summary
Constructors Constructor Description TestInboxImpl(ActorPath path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U> TestInboxImpl<U>
as()
TestInboxImpl<T>
expectMessage(T expectedMessage)
Assert and remove the the oldest message.ActorRef<T>
getRef()
boolean
hasMessages()
protected scala.collection.immutable.Seq<T>
internalReceiveAll()
T
receiveMessage()
Get and remove the oldest messageActorRef<T>
ref()
The actor ref of the inbox-
Methods inherited from class akka.actor.testkit.typed.javadsl.TestInbox
create, create, getAllReceived
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.testkit.typed.scaladsl.TestInbox
receiveAll
-
-
-
-
Constructor Detail
-
TestInboxImpl
public TestInboxImpl(ActorPath path)
-
-
Method Detail
-
as
public <U> TestInboxImpl<U> as()
-
expectMessage
public TestInboxImpl<T> expectMessage(T expectedMessage)
Description copied from class:TestInbox
Assert and remove the the oldest message.- Specified by:
expectMessage
in interfaceTestInbox<T>
- Specified by:
expectMessage
in classTestInbox<T>
- Parameters:
expectedMessage
- (undocumented)- Returns:
- (undocumented)
-
hasMessages
public boolean hasMessages()
- Specified by:
hasMessages
in interfaceTestInbox<T>
- Specified by:
hasMessages
in classTestInbox<T>
-
internalReceiveAll
protected scala.collection.immutable.Seq<T> internalReceiveAll()
- Specified by:
internalReceiveAll
in interfaceTestInbox<T>
- Specified by:
internalReceiveAll
in classTestInbox<T>
-
receiveMessage
public T receiveMessage()
Description copied from class:TestInbox
Get and remove the oldest message- Specified by:
receiveMessage
in interfaceTestInbox<T>
- Specified by:
receiveMessage
in classTestInbox<T>
- Returns:
- (undocumented)
-
-