org.apache.derby.impl.drda
Class ClientThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.derby.impl.drda.ClientThread
All Implemented Interfaces:
java.lang.Runnable

final class ClientThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  NetworkServerControlImpl parent
           
(package private)  java.net.ServerSocket serverSocket
           
private  int timeSlice
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientThread(NetworkServerControlImpl nsi, java.net.ServerSocket ss)
           
 
Method Summary
private  java.net.Socket acceptClientWithRetry()
          Perform a server socket accept.
 void run()
           
 
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
 

Field Detail

parent

NetworkServerControlImpl parent

serverSocket

java.net.ServerSocket serverSocket

timeSlice

private int timeSlice
Constructor Detail

ClientThread

ClientThread(NetworkServerControlImpl nsi,
             java.net.ServerSocket ss)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

acceptClientWithRetry

private java.net.Socket acceptClientWithRetry()
Perform a server socket accept. Allow three attempts with a one second wait between each

Returns:
client socket or null if accept failed.

Built on Wed 2013-06-12 15:21:56+0000, from revision ???

Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.