Class TcpServerAcceptThread
java.lang.Object
java.lang.Thread
org.apache.camel.component.mllp.internal.TcpServerAcceptThread
- All Implemented Interfaces:
Runnable
Thread to handle the ServerSocket.accept requests, and submit the sockets to the accept executor for validation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionTcpServerAcceptThread
(MllpTcpServerConsumer consumer, ServerSocket serverSocket) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
TcpServerAcceptThread
-
-
Method Details
-
run
public void run()The main ServerSocket.accept() loop NOTE: When a connection is received, the Socket is checked after a brief delay in an attempt to determine if this is a load-balancer probe. The test is done before the ConsumerClientSocketThread is created to avoid creating a large number of short lived threads, which is what can occur if the load balancer polling interval is very short. -
interrupt
public void interrupt()
-