org.mmbase.module.smtp
Class SMTPListener
java.lang.Object
java.lang.Thread
org.mmbase.module.smtp.SMTPListener
- All Implemented Interfaces:
- Runnable
public class SMTPListener
- extends Thread
Listener thread, that accepts connection on port 25 (default) and
delegates all work to its worker threads.
- Version:
- $Id: SMTPListener.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Johannes Verelst <johannes.verelst@eo.nl>
|
Method Summary |
ServerSocket |
getSocket()
|
void |
interrupt()
|
void |
run()
Main run method; it will listen for new connections and spawn
new threads for incoming connections. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
number
static int number
socketThreads
final ExecutorService socketThreads
SMTPListener
public SMTPListener(Map<String,String> properties)
getSocket
public ServerSocket getSocket()
run
public void run()
- Main run method; it will listen for new connections and spawn
new threads for incoming connections.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
interrupt
public void interrupt()
- Overrides:
interrupt in class Thread
MMBase 2.0-SNAPSHOT - null