Skip to content

Commit fad33f1

Browse files
api rename
1 parent 81a1883 commit fad33f1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

akka-cluster-sharding/src/main/scala/akka/cluster/sharding/ShardRegion.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ private[akka] class ShardRegion(
12961296
loggedFullBufferWarning = true
12971297
}
12981298
context.system.deadLetters ! msg
1299-
instrumentation.onShardRegionMessageDrop(cluster.selfAddress, self, typeName)
1299+
instrumentation.shardRegionMessageDropped(cluster.selfAddress, self, typeName)
13001300
} else {
13011301
shardBuffers.append(shardId, msg, snd)
13021302
instrumentation.onShardRegionBufferSizeIncrease(cluster.selfAddress, self, typeName)

akka-cluster-sharding/src/main/scala/akka/cluster/sharding/internal/ClusterShardingInstrumentation.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class ClusterShardingTelemetryEnsemble(val instrumentations: Seq[ClusterSharding
9494
typeName: String): Unit =
9595
instrumentations.foreach(_.onShardRegionBufferSizeIncrease(selfAddress, shardRegionActor, typeName))
9696

97-
override def onShardRegionMessageDrop(selfAddress: Address, self: ActorRef, typeName: String): Unit =
98-
instrumentations.foreach(_.onShardRegionMessageDrop(selfAddress, self, typeName))
97+
override def shardRegionMessageDropped(selfAddress: Address, self: ActorRef, typeName: String): Unit =
98+
instrumentations.foreach(_.shardRegionMessageDropped(selfAddress, self, typeName))
9999

100100
override def dependencies: immutable.Seq[String] =
101101
instrumentations.flatMap(_.dependencies)
@@ -124,7 +124,7 @@ class EmptyClusterShardingInstrumentation extends ClusterShardingInstrumentation
124124
shardRegionActor: ActorRef,
125125
typeName: String): Unit = ()
126126

127-
override def onShardRegionMessageDrop(selfAddress: Address, self: ActorRef, typeName: String): Unit = ()
127+
override def shardRegionMessageDropped(selfAddress: Address, self: ActorRef, typeName: String): Unit = ()
128128

129129
override def dependencies: immutable.Seq[String] = Nil
130130
}
@@ -148,7 +148,7 @@ trait ClusterShardingInstrumentation {
148148
/**
149149
* Drop a message send to a Shard Region as the buffer is full.
150150
*/
151-
def onShardRegionMessageDrop(selfAddress: Address, self: ActorRef, typeName: String): Unit
151+
def shardRegionMessageDropped(selfAddress: Address, self: ActorRef, typeName: String): Unit
152152

153153
/**
154154
* Optional dependencies for this instrumentation.

akka-cluster-sharding/src/multi-jvm/scala/akka/cluster/sharding/ClusterShardingInstrumentationSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SpecClusterShardingTelemetry(@nowarn("msg=never used") system: ExtendedAct
6868
counter.incrementAndGet()
6969
}
7070

71-
override def onShardRegionMessageDrop(selfAddress: Address, self: ActorRef, typeName: String): Unit =
71+
override def shardRegionMessageDropped(selfAddress: Address, self: ActorRef, typeName: String): Unit =
7272
dropMessageCounter.incrementAndGet()
7373

7474
override def dependencies: Seq[String] = Nil

0 commit comments

Comments
 (0)