Trait

akka.cluster.fastfailover

FastFailoverSupport

Related Doc: package fastfailover

Permalink

trait FastFailoverSupport extends Actor

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.

Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FastFailoverSupport
  2. Actor
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Abstract Value Members

  1. abstract def receive: actor.Actor.Receive

    Permalink
    Definition Classes
    Actor

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to any2stringadd[FastFailoverSupport] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FastFailoverSupport, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to ArrowAssoc[FastFailoverSupport] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  7. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    FastFailoverSupport → Actor
  9. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundReceive(receive: Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    FastFailoverSupport → Actor
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  14. def drainHeldMessages(): Unit

    Permalink

    Drain the held messages buffer.

    Drain the held messages buffer.

    This is invoked when the actor is restarted to ensure any held messages are not lost. If this behaviour is not desired, and instead the messages should be dropped, then this method can be overridden to do nothing.

  15. def ensuring(cond: (FastFailoverSupport) ⇒ Boolean, msg: ⇒ Any): FastFailoverSupport

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to Ensuring[FastFailoverSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (FastFailoverSupport) ⇒ Boolean): FastFailoverSupport

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to Ensuring[FastFailoverSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): FastFailoverSupport

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to Ensuring[FastFailoverSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): FastFailoverSupport

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to Ensuring[FastFailoverSupport] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def fastFailoverSettings: FastFailoverSettings

    Permalink

    Fast failover settings.

    Fast failover settings.

    Override if you want to supply your own custom settings.

  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to StringFormat[FastFailoverSupport] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  31. def postStop(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  33. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  35. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  36. def shouldHoldUntilNoOperation(msg: Any): Boolean

    Permalink

    Any message that this returns true for will be held by the fast failover support as long as there is an outstanding fast failover message to process.

    Any message that this returns true for will be held by the fast failover support as long as there is an outstanding fast failover message to process.

    This is useful for implementing graceful shutdown, to block the processing of shutdown messages until all fast failover operations have completed. Note that if more operations continue to arrive, such that this actor never ends up with no active operations, then the messages could end up being held indefinitely.

    Messages that get held must be tolerant to reordering, since other messages may arrive during the time that the messages are being held, which will overtake the held messages.

  37. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def [B](y: B): (FastFailoverSupport, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FastFailoverSupport to ArrowAssoc[FastFailoverSupport] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FastFailoverSupport to any2stringadd[FastFailoverSupport]

Inherited by implicit conversion StringFormat from FastFailoverSupport to StringFormat[FastFailoverSupport]

Inherited by implicit conversion Ensuring from FastFailoverSupport to Ensuring[FastFailoverSupport]

Inherited by implicit conversion ArrowAssoc from FastFailoverSupport to ArrowAssoc[FastFailoverSupport]

Ungrouped