altoo-ag/akka-kryo-serialization

[Question] Does serialization also serializes the internal implementation of an Akka message ?

Closed this issue · 1 comments

Will serializing the following case class as Akka message with Kryo also serialize the internal implementation of this Class or just the id and userName get serialized ?

case class CreateUserCommand(id: String, userName: String) {
    val validateCommandClientSide = List(ErrorMessage("test error"))

    def validateInternalState(oldState: State) = List(ErrorMessage("test error"))

    def getEvent = UserCreated(email, password)
  }
luben commented

It will serialize only the data fields, i.e. "id", "userName" and "validateCommandClientSide" AFAIK