C# Class WordCounter.Actors.WordCounterActor

Inheritance: BaseMonitoringActor
Mostrar archivo Open project: njimenez/AkkaProjects Class Usage Examples

Public Methods

Method Description
GetProps ( ) : Props
Handle ( FailureMessage fail ) : void
Handle ( FileToProcess message ) : void

Handle file processing message. Actor will count one file.

Handle ( WordCount message ) : void

This message is sent by the StringCounter Actor when it finishes with one line. When all lines counted then it will send a CompletedFile message to its parent and stop itself.

WordCounterActor ( ) : System

Initializes a new instance of the WordCounterActor class.

Protected Methods

Method Description
PreRestart ( Exception reason, object message ) : void

Private Methods

Method Description
Ready ( ) : void

Method Details

GetProps() public static method

public static GetProps ( ) : Props
return Props

Handle() public method

public Handle ( FailureMessage fail ) : void
fail WordCounter.Messages.FailureMessage
return void

Handle() public method

Handle file processing message. Actor will count one file.
public Handle ( FileToProcess message ) : void
message WordCounter.Messages.FileToProcess
return void

Handle() public method

This message is sent by the StringCounter Actor when it finishes with one line. When all lines counted then it will send a CompletedFile message to its parent and stop itself.
public Handle ( WordCount message ) : void
message WordCounter.Messages.WordCount
return void

PreRestart() protected method

protected PreRestart ( Exception reason, object message ) : void
reason System.Exception
message object
return void

WordCounterActor() public method

Initializes a new instance of the WordCounterActor class.
public WordCounterActor ( ) : System
return System