-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from lerna-stack/feature/typed-api
[Feature] Add typed API
- Loading branch information
Showing
70 changed files
with
3,762 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/mima-filters/1.0.0.backwards.excludes/pr-62-arrange-internal-raft-protocol.excludes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Following classes and objects will be package private in next release | ||
# | ||
# object lerna.akka.entityreplication.ReplicationActor#EntityRecoveryTimeoutException does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$EntityRecoveryTimeoutException$") | ||
# class lerna.akka.entityreplication.ReplicationActor#Snapshot does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$Snapshot") | ||
# object lerna.akka.entityreplication.ReplicationActor#TakeSnapshot does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$TakeSnapshot$") | ||
# class lerna.akka.entityreplication.ReplicationActor#EntityRecoveryTimeoutException does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$EntityRecoveryTimeoutException") | ||
# object lerna.akka.entityreplication.ReplicationActor#RecoveryTimeout does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$RecoveryTimeout$") | ||
# object lerna.akka.entityreplication.ReplicationActor#Snapshot does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$Snapshot$") | ||
# class lerna.akka.entityreplication.ReplicationActor#TakeSnapshot does not have a correspondent in current version | ||
ProblemFilters.exclude[MissingClassProblem]("lerna.akka.entityreplication.ReplicationActor$TakeSnapshot") | ||
# class lerna.akka.entityreplication.raft.RaftProtocol#ReplicationSucceeded is declared final in current version | ||
ProblemFilters.exclude[FinalClassProblem]("lerna.akka.entityreplication.raft.RaftProtocol$ReplicationSucceeded") | ||
# class lerna.akka.entityreplication.raft.RaftProtocol#Command is declared final in current version | ||
ProblemFilters.exclude[FinalClassProblem]("lerna.akka.entityreplication.raft.RaftProtocol$Command") | ||
# class lerna.akka.entityreplication.raft.RaftProtocol#Replicate is declared final in current version | ||
ProblemFilters.exclude[FinalClassProblem]("lerna.akka.entityreplication.raft.RaftProtocol$Replicate") | ||
# class lerna.akka.entityreplication.raft.RaftProtocol#ForwardedCommand is declared final in current version | ||
ProblemFilters.exclude[FinalClassProblem]("lerna.akka.entityreplication.raft.RaftProtocol$ForwardedCommand") | ||
# class lerna.akka.entityreplication.raft.RaftProtocol#Replica is declared final in current version | ||
ProblemFilters.exclude[FinalClassProblem]("lerna.akka.entityreplication.raft.RaftProtocol$Replica") |
8 changes: 8 additions & 0 deletions
8
.../mima-filters/1.0.0.backwards.excludes/pr-66-implement-typed-cluster-replication.excludes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# [ClusterReplication(system): ClusterReplication] can be used as before. | ||
# | ||
# static method apply(akka.actor.ActorSystem)lerna.akka.entityreplication.ClusterReplication in class lerna.akka.entityreplication.ClusterReplication has a different result type in current version, where it is akka.actor.Extension rather than lerna.akka.entityreplication.ClusterReplication | ||
ProblemFilters.exclude[IncompatibleResultTypeProblem]("lerna.akka.entityreplication.ClusterReplication.apply") | ||
# method this(akka.actor.ActorSystem)Unit in class lerna.akka.entityreplication.ClusterReplication's type is different in current version, where it is (akka.actor.ExtendedActorSystem)Unit instead of (akka.actor.ActorSystem)Unit | ||
ProblemFilters.exclude[IncompatibleMethTypeProblem]("lerna.akka.entityreplication.ClusterReplication.this") | ||
# method apply(akka.actor.ActorSystem)lerna.akka.entityreplication.ClusterReplication in object lerna.akka.entityreplication.ClusterReplication has a different result type in current version, where it is akka.actor.Extension rather than lerna.akka.entityreplication.ClusterReplication | ||
ProblemFilters.exclude[IncompatibleResultTypeProblem]("lerna.akka.entityreplication.ClusterReplication.apply") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package akka.lerna | ||
|
||
/** | ||
* Expose internal API of Akka to use it in [[lerna]] package. | ||
*/ | ||
abstract class DeferredBehavior[Command] extends akka.actor.typed.internal.BehaviorImpl.DeferredBehavior[Command] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package akka.lerna | ||
|
||
import akka.actor.ActorRefProvider | ||
import akka.actor.typed.ActorRef | ||
import akka.actor.typed.internal.adapter.ActorRefAdapter | ||
|
||
object InternalActorRefProxy { | ||
def apply[T](ref: ActorRef[T]): InternalActorRefProxy[T] = | ||
new InternalActorRefProxy[T](ref) | ||
} | ||
|
||
class InternalActorRefProxy[T](ref: ActorRef[T]) { | ||
|
||
private[this] val classicRef = ActorRefAdapter.toClassic(ref) | ||
|
||
def provider: ActorRefProvider = classicRef.provider | ||
|
||
def isTerminated: Boolean = classicRef.isTerminated | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package akka.lerna | ||
|
||
/** | ||
* Expose internal API of Akka to use it in [[lerna]] package. | ||
*/ | ||
trait InternalRecipientRef[-T] extends akka.actor.typed.internal.InternalRecipientRef[T] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/scala/lerna/akka/entityreplication/ReplicationActorContext.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package lerna.akka.entityreplication | ||
|
||
import akka.actor.ActorRef | ||
|
||
private[entityreplication] class ReplicationActorContext(val entityId: String, val shard: ActorRef) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.