C# Класс Twingly.Gearman.GearmanThreadedWorker

Наследование: GearmanWorker
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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