Base interface for actor behaviors. More...
#include <actor.hpp>
Public Member Functions | |
virtual void | Receive (TMessageId messageId, TBlob blob, TActorContext::TPtr ctx)=0 |
Process an incoming message according to this behavior. | |
Base interface for actor behaviors.
IBehavior defines a pluggable message handling strategy that can be switched at runtime. This allows actors to change their behavior dynamically based on their current state or external conditions.
|
pure virtual |
Process an incoming message according to this behavior.
messageId | Type identifier of the message |
blob | Serialized message data |
ctx | Actor context for communication |
Implemented in NNet::NActors::TBehavior< TBaseBehavior, TMessages >.