Class ClientThread
java.lang.Object
java.lang.Thread
org.apache.derby.impl.drda.ClientThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) NetworkServerControlImpl(package private) ServerSocketprivate intFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
parent
NetworkServerControlImpl parent -
serverSocket
ServerSocket serverSocket -
timeSlice
private int timeSlice
-
-
Constructor Details
-
ClientThread
ClientThread(NetworkServerControlImpl nsi, ServerSocket ss)
-
-
Method Details
-
run
-
acceptClientWithRetry
Perform a server socket accept. Allow three attempts with a one second wait between each- Returns:
- client socket or null if accept failed.
-