javatools.thread
Interface Server

All Superinterfaces:
java.lang.Runnable
All Known Subinterfaces:
ManagedThread
All Known Implementing Classes:
Cron, CronThread, HttpCommander, NetworkServer, SmtpListener, ThreadManager

public interface Server
extends java.lang.Runnable

An interface that all server classes must implement. i.e all servers need a method to be able to shutdown. For a server with multiple threads, ideally each thread will implement Server, and we will call shutdown() on each thread in turn.


Method Summary
 void shutdown()
          Shutdown this server thread.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

shutdown

public void shutdown()
Shutdown this server thread.