COROIO: NNet::NActors::IBehavior Class Reference
COROIO
 
Loading...
Searching...
No Matches
NNet::NActors::IBehavior Class Referenceabstract

Base interface for actor behaviors. More...

#include <actor.hpp>

Inheritance diagram for NNet::NActors::IBehavior:
NNet::NActors::TBehavior< TBaseBehavior, TMessages >

Public Member Functions

virtual void Receive (TMessageId messageId, TBlob blob, TActorContext::TPtr ctx)=0
 Process an incoming message according to this behavior.
 

Detailed Description

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.

Member Function Documentation

◆ Receive()

virtual void NNet::NActors::IBehavior::Receive ( TMessageId  messageId,
TBlob  blob,
TActorContext::TPtr  ctx 
)
pure virtual

Process an incoming message according to this behavior.

Parameters
messageIdType identifier of the message
blobSerialized message data
ctxActor context for communication

Implemented in NNet::NActors::TBehavior< TBaseBehavior, TMessages >.


The documentation for this class was generated from the following file: