class ClusterMetricsStrategy extends OneForOneStrategy
Default ClusterMetricsSupervisor strategy: A configurable akka.actor.OneForOneStrategy with restart-on-throwable decider.
- Alphabetic
- By Inheritance
- ClusterMetricsStrategy
- OneForOneStrategy
- Serializable
- Serializable
- Product
- Equals
- SupervisorStrategy
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new ClusterMetricsStrategy(config: Config)
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        +(other: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to any2stringadd[ClusterMetricsStrategy] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ->[B](y: B): (ClusterMetricsStrategy, B)
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to ArrowAssoc[ClusterMetricsStrategy] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        decider: Decider
      
      
      - Definition Classes
- OneForOneStrategy → SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (ClusterMetricsStrategy) ⇒ Boolean, msg: ⇒ Any): ClusterMetricsStrategy
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to Ensuring[ClusterMetricsStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (ClusterMetricsStrategy) ⇒ Boolean): ClusterMetricsStrategy
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to Ensuring[ClusterMetricsStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean, msg: ⇒ Any): ClusterMetricsStrategy
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to Ensuring[ClusterMetricsStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean): ClusterMetricsStrategy
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to Ensuring[ClusterMetricsStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        formatted(fmtstr: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to StringFormat[ClusterMetricsStrategy] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        handleChildTerminated(context: ActorContext, child: ActorRef, children: Iterable[ActorRef]): Unit
      
      
      This method is called after the child has been removed from the set of children. This method is called after the child has been removed from the set of children. It does not need to do anything special. Exceptions thrown from this method do NOT make the actor fail if this happens during termination. - Definition Classes
- OneForOneStrategy → SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        handleFailure(context: ActorContext, child: ActorRef, cause: Throwable, stats: ChildRestartStats, children: Iterable[ChildRestartStats]): Boolean
      
      
      This is the main entry point: in case of a child’s failure, this method must try to handle the failure by resuming, restarting or stopping the child (and returning true), or it returnsfalseto escalate the failure, which will lead to this actor re-throwing the exception which caused the failure.This is the main entry point: in case of a child’s failure, this method must try to handle the failure by resuming, restarting or stopping the child (and returning true), or it returnsfalseto escalate the failure, which will lead to this actor re-throwing the exception which caused the failure. The exception will not be wrapped.This method calls akka.actor.SupervisorStrategy#logFailure, which will log the failure unless it is escalated. You can customize the logging by setting akka.actor.SupervisorStrategy#loggingEnabled to falseand do the logging inside thedecideror override thelogFailuremethod.- children
- is a lazy collection (a view) 
 - Definition Classes
- SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        logFailure(context: ActorContext, child: ActorRef, cause: Throwable, decision: Directive): Unit
      
      
      Default logging of actor failures when akka.actor.SupervisorStrategy#loggingEnabled is true.Default logging of actor failures when akka.actor.SupervisorStrategy#loggingEnabled is true.Escalatefailures are not logged here, since they are supposed to be handled at a level higher up in the hierarchy.Resumefailures are logged atWarninglevel.StopandRestartfailures are logged atErrorlevel.- Definition Classes
- SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        loggingEnabled: Boolean
      
      
      - Definition Classes
- OneForOneStrategy → SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        maxNrOfRetries: Int
      
      
      - Definition Classes
- OneForOneStrategy
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        processFailure(context: ActorContext, restart: Boolean, child: ActorRef, cause: Throwable, stats: ChildRestartStats, children: Iterable[ChildRestartStats]): Unit
      
      
      This method is called to act on the failure of a child: restart if the flag is true, stop otherwise. This method is called to act on the failure of a child: restart if the flag is true, stop otherwise. - Definition Classes
- OneForOneStrategy → SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        restartChild(child: ActorRef, cause: Throwable, suspendFirst: Boolean): Unit
      
      
      Restart the given child, possibly suspending it first. Restart the given child, possibly suspending it first. IMPORTANT: If the child is the currently failing one, it will already have been suspended, hence suspendFirstmust be false. If the child is not the currently failing one, then it did not request this treatment and is therefore not prepared to be resumed without prior suspend.- Definition Classes
- SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        resumeChild(child: ActorRef, cause: Throwable): Unit
      
      
      Resume the previously failed child: do never apply this to a child which is not the currently failing child. Resume the previously failed child: do never apply this to a child which is not the currently failing child. Suspend/resume needs to be done in matching pairs, otherwise actors will wake up too soon or never at all. - Definition Classes
- SupervisorStrategy
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        withinTimeRange: Duration
      
      
      - Definition Classes
- OneForOneStrategy
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        →[B](y: B): (ClusterMetricsStrategy, B)
      
      
      - Implicit
- This member is added by an implicit conversion from ClusterMetricsStrategy to ArrowAssoc[ClusterMetricsStrategy] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc