com.antiaction.mayhem.mail.smtpd
Class RequestWorker

java.lang.Object
  extended by com.antiaction.mayhem.mail.smtpd.RequestWorker
All Implemented Interfaces:
IThreadWorker, IRequestWorker, java.lang.Cloneable, java.lang.Runnable

public class RequestWorker
extends java.lang.Object
implements IRequestWorker, IThreadWorker

Request Worker.

Version:
1.00
Author:
Nicholas Clarke

Constructor Summary
RequestWorker()
           
 
Method Summary
 java.lang.Object clone()
          Overrides Cloneable.
 boolean init(java.util.HashMap props)
          Initialize worker.
 void run()
          Wait for connection.
 void setExit(boolean _exit)
           
 void setObjectBroker(IObjectBroker _objectBroker)
          Assign a Broker to this worker.
 void setProcessObjectBroker(IObjectBroker _objectBroker)
           
 void setService(Service service)
           
 void setServiceManager(ISMTPServiceManager serviceManager)
           
 void setThreadPool(IThreadPool _threadPool)
          Assign a ThreadPool to this thread.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestWorker

public RequestWorker()
Method Detail

init

public boolean init(java.util.HashMap props)
Description copied from interface: IRequestWorker
Initialize worker.

Specified by:
init in interface IRequestWorker
Parameters:
props - Properties.

clone

public java.lang.Object clone()
Description copied from interface: IThreadWorker
Overrides Cloneable.

Specified by:
clone in interface IThreadWorker
Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable

setObjectBroker

public void setObjectBroker(IObjectBroker _objectBroker)
Description copied from interface: IRequestWorker
Assign a Broker to this worker.

Specified by:
setObjectBroker in interface IRequestWorker
Parameters:
_objectBroker - Associated Broker for this worker.

setService

public void setService(Service service)

setProcessObjectBroker

public void setProcessObjectBroker(IObjectBroker _objectBroker)

setServiceManager

public void setServiceManager(ISMTPServiceManager serviceManager)

setThreadPool

public void setThreadPool(IThreadPool _threadPool)
Description copied from interface: IThreadWorker
Assign a ThreadPool to this thread.

Specified by:
setThreadPool in interface IThreadWorker
Parameters:
_threadPool - Associated ThreadPool to this thread.

setExit

public void setExit(boolean _exit)

run

public void run()
Wait for connection.

Specified by:
run in interface java.lang.Runnable


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.