Skip to content

Commit 5cd6660

Browse files
authored
chore: mark some utilities as internal stable (#32710)
1 parent 740bf6b commit 5cd6660

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

akka-actor/src/main/scala/akka/util/Clock.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ import akka.actor.ExtensionId
1919
import akka.actor.ExtensionIdProvider
2020
import akka.actor.Scheduler
2121
import akka.annotation.InternalApi
22+
import akka.annotation.InternalStableApi
2223

2324
/**
2425
* INTERNAL API
2526
*/
26-
@InternalApi private[akka] object Clock extends ExtensionId[Clock] with ExtensionIdProvider {
27+
@InternalStableApi private[akka] object Clock extends ExtensionId[Clock] with ExtensionIdProvider {
2728
override def get(system: ActorSystem): Clock = super.get(system)
2829

2930
override def get(system: ClassicActorSystemProvider): Clock = super.get(system)
@@ -42,7 +43,7 @@ import akka.annotation.InternalApi
4243
/**
4344
* INTERNAL API
4445
*/
45-
@InternalApi private[akka] trait Clock extends Extension {
46+
@InternalStableApi private[akka] trait Clock extends Extension {
4647
def currentTime(): Long
4748

4849
def earlierTime(duration: FiniteDuration): Long

akka-actor/src/main/scala/akka/util/RecencyList.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import scala.collection.immutable
88
import scala.collection.mutable
99
import scala.concurrent.duration.FiniteDuration
1010

11-
import akka.annotation.InternalApi
11+
import akka.annotation.InternalStableApi
1212

1313
/**
1414
* INTERNAL API
1515
*/
16-
@InternalApi
16+
@InternalStableApi
1717
private[akka] object RecencyList {
1818
def emptyWithNanoClock[A]: RecencyList[A] =
1919
RecencyList[A](new NanoClock)
@@ -35,7 +35,7 @@ private[akka] object RecencyList {
3535
* Used for tracking recency of elements for implementing least/most recently used eviction policies.
3636
* Implemented using a doubly-linked list plus hash map for lookup, so that all operations are constant time.
3737
*/
38-
@InternalApi
38+
@InternalStableApi
3939
private[akka] final class RecencyList[A] private (clock: Clock) {
4040
import RecencyList.Node
4141

akka-actor/src/main/scala/akka/util/WildcardIndex.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44

55
package akka.util
66

7+
import akka.annotation.InternalApi
8+
import akka.annotation.InternalStableApi
9+
710
import scala.annotation.tailrec
811
import scala.collection.immutable.HashMap
912

13+
/**
14+
* INTERNAL API
15+
*/
16+
@InternalStableApi
1017
private[akka] final case class WildcardIndex[T](
1118
wildcardTree: WildcardTree[T] = WildcardTree[T](),
1219
doubleWildcardTree: WildcardTree[T] = WildcardTree[T]()) {
@@ -37,11 +44,19 @@ private[akka] final case class WildcardIndex[T](
3744

3845
}
3946

47+
/**
48+
* INTERNAL API
49+
*/
50+
@InternalApi
4051
private[akka] object WildcardTree {
4152
private val empty = new WildcardTree[Nothing]()
4253
def apply[T](): WildcardTree[T] = empty.asInstanceOf[WildcardTree[T]]
4354
}
4455

56+
/**
57+
* INTERNAL API
58+
*/
59+
@InternalApi
4560
private[akka] final case class WildcardTree[T](
4661
data: Option[T] = None,
4762
children: Map[String, WildcardTree[T]] = HashMap[String, WildcardTree[T]](),

0 commit comments

Comments
 (0)