zio.pekko.cluster.sharding.MessageEnvelope.scala Maven / Gradle / Ivy
package zio.pekko.cluster.sharding
import MessageEnvelope.Payload
case class MessageEnvelope(entityId: String, data: Payload)
object MessageEnvelope {
sealed trait Payload
case object PoisonPillPayload extends Payload
case object PassivatePayload extends Payload
case class MessagePayload[Msg](msg: Msg) extends Payload
}