[not for merge] Warnings as errors in akka-actor (#26634)
Warnings as errors in akka-actor
This commit is contained in:
parent
18802420fb
commit
76479b8770
68 changed files with 313 additions and 100 deletions
|
|
@ -6,9 +6,11 @@ package akka.cluster.metrics
|
|||
|
||||
import java.util.Arrays
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
|
||||
import scala.annotation.tailrec
|
||||
import scala.collection.immutable
|
||||
import java.util.concurrent.ThreadLocalRandom
|
||||
|
||||
import com.typesafe.config.Config
|
||||
import akka.actor.Actor
|
||||
import akka.actor.ActorSystem
|
||||
|
|
@ -22,6 +24,7 @@ import akka.dispatch.Dispatchers
|
|||
import akka.japi.Util.immutableSeq
|
||||
import akka.routing._
|
||||
import akka.cluster.routing.ClusterRouterSettingsBase
|
||||
import com.github.ghik.silencer.silent
|
||||
|
||||
/**
|
||||
* Load balancing of messages to cluster nodes based on cluster metric data.
|
||||
|
|
@ -416,6 +419,7 @@ object MetricsSelector {
|
|||
/**
|
||||
* A MetricsSelector is responsible for producing weights from the node metrics.
|
||||
*/
|
||||
@silent
|
||||
@SerialVersionUID(1L)
|
||||
trait MetricsSelector extends Serializable {
|
||||
|
||||
|
|
@ -429,6 +433,7 @@ trait MetricsSelector extends Serializable {
|
|||
* A MetricsSelector producing weights from remaining capacity.
|
||||
* The weights are typically proportional to the remaining capacity.
|
||||
*/
|
||||
@silent
|
||||
@SerialVersionUID(1L)
|
||||
abstract class CapacityMetricsSelector extends MetricsSelector {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue