Skip to content

Commit

Permalink
👷chore: Add @deprecated to untyped APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
negokaz committed Jul 15, 2021
1 parent 08d6f3f commit 48786b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ClusterReplication private (system: ExtendedActorSystem) extends Extension
private[this] lazy val guardian: ActorRef =
system.systemActorOf(ClusterReplicationGuardian.props(), "clusterReplicationGuardian")

@deprecated(message = "Use typed.ClusterReplication.init() instead", since = "2.0.0")
def start(
typeName: String,
entityProps: Props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import lerna.akka.entityreplication.raft.routing.MemberIndex

import scala.concurrent.duration.FiniteDuration

@deprecated(message = "Use typed.ClusterReplicationSettings instead", since = "2.0.0")
object ClusterReplicationSettings {

def apply(system: ActorSystem): ClusterReplicationSettings = {
Expand All @@ -17,6 +18,7 @@ object ClusterReplicationSettings {
}
}

@deprecated(message = "Use typed.ClusterReplicationSettings instead", since = "2.0.0")
trait ClusterReplicationSettings {

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ private[entityreplication] object ReplicationActor {
private def generateInstanceId(): EntityInstanceId = EntityInstanceId(instanceIdCounter.getAndIncrement())
}

@deprecated(message = "Use typed.ReplicatedEntityBehavior instead", since = "2.0.0")
trait ReplicationActor[StateData] extends Actor with Stash with akka.lerna.StashFactory {
import context.dispatcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import lerna.akka.entityreplication.ReplicationActor
/**
* The [[TestReplicationActorProps]] allows to test [[ReplicationActor]] like a normal Actor.
*/
@deprecated(message = "Use typed.testkit.ReplicatedEntityBehaviorTestKit instead", since = "2.0.0")
object TestReplicationActorProps {

def apply(replicationActorProps: Props): Props = {
Expand Down

0 comments on commit 48786b2

Please sign in to comment.