C# 클래스 WordCounter.Actors.WordCounterActor

상속: BaseMonitoringActor
파일 보기 프로젝트 열기: njimenez/AkkaProjects 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
PreRestart ( Exception reason, object message ) : void

비공개 메소드들

메소드 설명
Ready ( ) : void

메소드 상세

GetProps() 공개 정적인 메소드

public static GetProps ( ) : Props
리턴 Props

Handle() 공개 메소드

public Handle ( FailureMessage fail ) : void
fail WordCounter.Messages.FailureMessage
리턴 void

Handle() 공개 메소드

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

Handle() 공개 메소드

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
리턴 void

PreRestart() 보호된 메소드

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

WordCounterActor() 공개 메소드

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