endless.runtime.akka.data.Command.scala Maven / Gradle / Ivy
package endless.runtime.akka.data
import akka.actor.typed.ActorRef
/** Internal carrier data type for entity commands
* @param id
* target entity ID
* @param payload
* binary payload
* @param replyTo
* actor reference where to deliver the reply
*/
@SuppressWarnings(Array("org.wartremover.warts.ArrayEquals"))
final case class Command(id: String, payload: Array[Byte])(
val replyTo: ActorRef[Reply]
)