C# Class Twingly.Gearman.GearmanThreadedWorker

Inheritance: GearmanWorker
Afficher le fichier Open project: twingly/GearmanSharp Class Usage Examples

Protected Properties

Свойство Type Description
ContinueWorking bool

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
WorkLoopThreadProc ( ) : void

Method Details

GearmanThreadedWorker() public méthode

public GearmanThreadedWorker ( ) : System
Résultat System

GearmanThreadedWorker() public méthode

public GearmanThreadedWorker ( ClusterConfigurationElement clusterConfiguration ) : System
clusterConfiguration Twingly.Gearman.Configuration.ClusterConfigurationElement
Résultat System

GearmanThreadedWorker() public méthode

public GearmanThreadedWorker ( string clusterName ) : System
clusterName string
Résultat System

JoinWorkerThread() public méthode

Joins the worker thread, if it's alive.
public JoinWorkerThread ( ) : void
Résultat void

OnJobException() protected méthode

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.
Résultat bool

SignalWorkerThreadToStop() public méthode

Tells the worker thread to stop and then joins the thread.
public SignalWorkerThreadToStop ( ) : void
Résultat void

StartWorkLoop() public méthode

public StartWorkLoop ( ) : void
Résultat void

StopWorkLoop() public méthode

Tells the worker thread to stop and then joins the thread.
public StopWorkLoop ( ) : void
Résultat void

Property Details

ContinueWorking protected_oe property

protected bool ContinueWorking
Résultat bool