Java API: Support for implementing fast failover with an abstract actor.
Java API: Support for implementing fast failover with an abstract actor.
Simply extend this class rather than akka.actor.AbstractActor.
Note that this is incompatible with any other abstract class due to Java's lack of multiple inheritance support. If you need to extend a different class, you should use FastFailoverHelper instead.
Helper for actors that execute fast failover operation attempts.
Helper for actors that execute fast failover operation attempts.
This class can either be instantiated as is, or extended to override the FastFailoverHelper#fastFailoverSettings or FastFailoverHelper#shouldHoldUntilNoOperation methods.
The FastFailoverHelper#handleFastFailover (Scala Actor), FastFailoverHelper#handleFastFailoverReceive (Java AbstractActor) methods can be used to handle fast failover envelopes and heartbeats.
INTERNAL API
INTERNAL API
Fast failover configuration.
Support for implementing fast failover.
Support for implementing fast failover.
Simply mix this trait into your actor for transparent handling of fast failover envelopes and heartbeats.
Note that this uses Akka's aroundReceive
and aroundPreRestart
methods, which may conflict with other actor
mix-ins like PersistentActor
. In such cases it may be better to use FastFailoverHelper directly.