C# 클래스 Twingly.Gearman.GearmanThreadedWorker

상속: GearmanWorker
파일 보기 프로젝트 열기: twingly/GearmanSharp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
ContinueWorking bool

공개 메소드들

메소드 설명
GearmanThreadedWorker ( ) : System
GearmanThreadedWorker ( ClusterConfigurationElement clusterConfiguration ) : System
GearmanThreadedWorker ( string clusterName ) : System
JoinWorkerThread ( ) : void

Joins the worker thread, if it's alive.

SignalWorkerThreadToStop ( ) : void

Tells the worker thread to stop and then joins the thread.

StartWorkLoop ( ) : void
StopWorkLoop ( ) : void

Tells the worker thread to stop and then joins the thread.

보호된 메소드들

메소드 설명
OnJobException ( Exception exception, GearmanJobInfo jobAssignment ) : bool

Called when a job function throws an exception. Does nothing and returns false, to not abort the work loop.

비공개 메소드들

메소드 설명
WorkLoopThreadProc ( ) : void

메소드 상세

GearmanThreadedWorker() 공개 메소드

public GearmanThreadedWorker ( ) : System
리턴 System

GearmanThreadedWorker() 공개 메소드

public GearmanThreadedWorker ( ClusterConfigurationElement clusterConfiguration ) : System
clusterConfiguration Twingly.Gearman.Configuration.ClusterConfigurationElement
리턴 System

GearmanThreadedWorker() 공개 메소드

public GearmanThreadedWorker ( string clusterName ) : System
clusterName string
리턴 System

JoinWorkerThread() 공개 메소드

Joins the worker thread, if it's alive.
public JoinWorkerThread ( ) : void
리턴 void

OnJobException() 보호된 메소드

Called when a job function throws an exception. Does nothing and returns false, to not abort the work loop.
protected OnJobException ( Exception exception, GearmanJobInfo jobAssignment ) : bool
exception System.Exception The exception thrown by the job function.
jobAssignment GearmanJobInfo The job assignment that the job function got.
리턴 bool

SignalWorkerThreadToStop() 공개 메소드

Tells the worker thread to stop and then joins the thread.
public SignalWorkerThreadToStop ( ) : void
리턴 void

StartWorkLoop() 공개 메소드

public StartWorkLoop ( ) : void
리턴 void

StopWorkLoop() 공개 메소드

Tells the worker thread to stop and then joins the thread.
public StopWorkLoop ( ) : void
리턴 void

프로퍼티 상세

ContinueWorking 보호되어 있는 프로퍼티

protected bool ContinueWorking
리턴 bool