guarana.toolkit.engine
Class Worker

java.lang.Object
  extended by tdg.concurrency.activity.ActiveObject
      extended by guarana.toolkit.engine.Worker
All Implemented Interfaces:
Runnable

public class Worker
extends tdg.concurrency.activity.ActiveObject

A thread object used by the Scheduler to execute tasks.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz

Constructor Summary
Worker(String name, WorkQueue workQueue)
          Constructs a new worker with a given name and a source work queue.
 
Method Summary
 
Methods inherited from class tdg.concurrency.activity.ActiveObject
getId, getName, run, start, stop, waitUntilStopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker

public Worker(String name,
              WorkQueue workQueue)
Constructs a new worker with a given name and a source work queue. From this work queue the worker reads work units to process them.

Parameters:
name - The name of the worker.
workQueue - The source work queue.


Guaranį DSL Home