Optional ReadonlycapOptional ReadonlyinitCreates the initial state. Called on construction and on every restart.
Optional ReadonlynameOptional name, useful in logs and supervisors.
Optional ReadonlyonCalled for every message that was accepted (or attempted) but will never be processed: dropped on kill/failure, or rejected because the actor was not running.
Optional ReadonlyonLocal failure policy. Defaults to 'escalate'.
If the hook itself throws, the actor fails with that error.
ReadonlyreceiveMessage handler.
Optional ReadonlysupervisorSupervisor consulted when the local policy escalates.
Mailbox capacity.
send/askwait for room when the mailbox is full;0hands messages over directly to the handler. Defaults toInfinity.