Top Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv final Class ClientThread

extends Thread
Class Inheritance
Imports
java.io.IOException, java.net.ServerSocket, .Socket

Field Summary

Modifier and TypeField and Description
pack-priv NetworkServerControlImpl
pack-priv ServerSocket
private int
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Socket

Returns:

client socket or null if accept failed.
acceptClientWithRetry
()

Perform a server socket accept.

public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.
Inherited from java.lang.Thread:
activeCountcheckAccessclonecountStackFramescurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitresumesetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopsuspendthreadIdtoStringyield

Field Detail

parentback to summary
pack-priv NetworkServerControlImpl parent
serverSocketback to summary
pack-priv ServerSocket serverSocket
timeSliceback to summary
private int timeSlice

Constructor Detail

ClientThreadback to summary
pack-priv ClientThread(NetworkServerControlImpl nsi, ServerSocket ss)

Method Detail

acceptClientWithRetryback to summary
private Socket acceptClientWithRetry()

Perform a server socket accept. Allow three attempts with a one second wait between each

Returns:Socket

client socket or null if accept failed.

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.