pictionary.pictionaryserver
Class PictionaryServer.ServerThread

java.lang.Object
  extended by java.lang.Thread
      extended by pictionary.pictionaryserver.PictionaryServer.ServerThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
PictionaryServer

private class PictionaryServer.ServerThread
extends java.lang.Thread

Listen for new clients, if a new client is found it is passed to ClientConnection#ClientConnection(BlockingQueue, Socket) along with PictionaryServer.incomingMessages.

Author:
Kristoffer Nordkvist

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private PictionaryServer.ServerThread()
           
 
Method Summary
 void run()
          Listens for and accepts new clients.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PictionaryServer.ServerThread

private PictionaryServer.ServerThread()
Method Detail

run

public void run()
Listens for and accepts new clients.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread