org.apache.pekko.remote.artery.QuarantinedEvent.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pekko-remote_2.13 Show documentation
Show all versions of pekko-remote_2.13 Show documentation
Apache Pekko is a toolkit for building highly concurrent, distributed, and resilient message-driven applications for Java and Scala.
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2019-2022 Lightbend Inc.
*/
package org.apache.pekko.remote.artery
import org.apache.pekko.remote.UniqueAddress
final case class QuarantinedEvent(uniqueAddress: UniqueAddress) {
override val toString: String =
s"QuarantinedEvent: Association to [${uniqueAddress.address}] having UID [${uniqueAddress.uid}] is" +
"irrecoverably failed. UID is now quarantined and all messages to this UID will be delivered to dead letters. " +
"Remote ActorSystem must be restarted to recover from this situation."
}
final case class GracefulShutdownQuarantinedEvent(uniqueAddress: UniqueAddress, reason: String) {
override val toString: String =
s"GracefulShutdownQuarantinedEvent: Association to [${uniqueAddress.address}] having UID [${uniqueAddress.uid}] " +
s"has been stopped. All messages to this UID will be delivered to dead letters. Reason: $reason"
}
final case class ThisActorSystemQuarantinedEvent(localAddress: UniqueAddress, remoteAddress: UniqueAddress) {
override val toString: String =
s"ThisActorSystemQuarantinedEvent: The remote system [$remoteAddress] has quarantined this system [$localAddress]."
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy