Send the command
to the PersistentEntity.
Send the command
to the PersistentEntity. The returned
Future
will be completed with the reply from the PersistentEntity
.
The type of the reply is defined by the command (see PersistentEntity.ReplyType).
The Future
may also be completed with failure, sent by the PersistentEntity
or a akka.pattern.AskTimeoutException
if there is no reply within a timeout.
The timeout can defined in configuration or overridden using #withAskTimeout.
The timeout for #ask.
The timeout for #ask. The timeout is by default defined in configuration
but it can be adjusted for a specific PersistentEntityRef
using this method.
Note that this returns a new PersistentEntityRef
instance with the given timeout
(PersistentEntityRef
is immutable).
Commands are sent to a PersistentEntity using a
PersistentEntityRef
. It is retrieved with PersistentEntityRegistry#refFor.