Skip to content

Commit e6422a4

Browse files
committed
make MissingElements private again
1 parent bafa917 commit e6422a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/scala/akka/persistence/jdbc/query/JournalSequenceActor.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ object JournalSequenceActor {
3838
* Efficient representation of missing elements using NumericRanges.
3939
* It can be seen as a collection of OrderingIds
4040
*/
41-
case class MissingElements(elements: Seq[NumericRange[OrderingId]]) {
41+
private case class MissingElements(elements: Seq[NumericRange[OrderingId]]) {
4242
def addRange(from: OrderingId, until: OrderingId): MissingElements = {
4343
val newRange = from.until(until)
4444
MissingElements(elements :+ newRange)
4545
}
4646
def contains(id: OrderingId): Boolean = elements.exists(_.containsTyped(id))
4747
def isEmpty: Boolean = elements.forall(_.isEmpty)
4848
}
49-
object MissingElements {
49+
private object MissingElements {
5050
def empty: MissingElements = MissingElements(Vector.empty)
5151
}
5252
}
@@ -84,7 +84,7 @@ class JournalSequenceActor(readJournalDao: ReadJournalDao, config: JournalSequen
8484
* @param moduloCounter A counter which is incremented every time a new query have been executed, modulo `maxTries`
8585
* @param previousDelay The last used delay (may change in case failures occur)
8686
*/
87-
def receive(
87+
private def receive(
8888
currentMaxOrdering: OrderingId,
8989
missingByCounter: Map[Int, MissingElements],
9090
moduloCounter: Int,
@@ -129,7 +129,7 @@ class JournalSequenceActor(readJournalDao: ReadJournalDao, config: JournalSequen
129129
/**
130130
* This method that implements the "find gaps" algo. It's the meat and main purpose of this actor.
131131
*/
132-
def findGaps(
132+
private def findGaps(
133133
elements: Seq[OrderingId],
134134
currentMaxOrdering: OrderingId,
135135
missingByCounter: Map[Int, MissingElements],

0 commit comments

Comments
 (0)