with deprecated code, highlight versions are Akka versions (#154)

* with deprecated code, highlight versions are Akka versions

* scalafmt issue
This commit is contained in:
PJ Fanning 2023-02-09 14:39:56 +01:00 committed by GitHub
parent 8338bfed8b
commit d0238d8bf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 308 additions and 307 deletions

View file

@ -22,7 +22,7 @@ import java.util.List;
/**
* Builder used to create a partial function for {@link org.apache.pekko.actor.FSM#whenUnhandled}.
*
* @deprecated use EventSourcedBehavior since 2.6.0
* @deprecated use EventSourcedBehavior since Akka 2.6.0
* @param <S> the state type
* @param <D> the data type
* @param <E> the domain event type

View file

@ -21,7 +21,7 @@ import scala.runtime.BoxedUnit;
/**
* Builder used to create a partial function for {@link org.apache.pekko.actor.FSM#onTermination}.
*
* @deprecated use EventSourcedBehavior since 2.6.0
* @deprecated use EventSourcedBehavior since Akka 2.6.0
* @param <S> the state type
* @param <D> the data type
*/

View file

@ -282,7 +282,7 @@ trait PersistentFSMBase[S, D, E] extends Actor with Listeners with ActorLogging
@deprecated(
"Use startSingleTimer, startTimerWithFixedDelay or startTimerAtFixedRate instead. This has the same semantics as " +
"startTimerAtFixedRate, but startTimerWithFixedDelay is often preferred.",
since = "2.6.0")
since = "Akka 2.6.0")
final def setTimer(name: String, msg: Any, timeout: FiniteDuration, repeat: Boolean = false): Unit = {
// repeat => FixedRateMode for compatibility
val mode = if (repeat) FixedRateMode else SingleMode
@ -1167,7 +1167,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
* @param msg message to be delivered
* @param timeout delay of first message delivery and between subsequent messages
*/
@deprecated("Use startSingleTimer instead.", since = "2.6.0")
@deprecated("Use startSingleTimer instead.", since = "Akka 2.6.0")
final def setTimer(name: String, msg: Any, timeout: FiniteDuration): Unit =
setTimer(name, msg, timeout, false)

View file

@ -30,7 +30,7 @@ trait DurableStateUpdateStore[A] extends DurableStateStore[A] {
*/
def upsertObject(persistenceId: String, revision: Long, value: A, tag: String): CompletionStage[Done]
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "2.6.20")
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "Akka 2.6.20")
def deleteObject(persistenceId: String): CompletionStage[Done]
def deleteObject(persistenceId: String, revision: Long): CompletionStage[Done]

View file

@ -30,7 +30,7 @@ trait DurableStateUpdateStore[A] extends DurableStateStore[A] {
*/
def upsertObject(persistenceId: String, revision: Long, value: A, tag: String): Future[Done]
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "2.6.20")
@deprecated(message = "Use the deleteObject overload with revision instead.", since = "Akka 2.6.20")
def deleteObject(persistenceId: String): Future[Done]
def deleteObject(persistenceId: String, revision: Long): Future[Done]