Class TcpServerAcceptThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.camel.component.mllp.internal.TcpServerAcceptThread
-
-
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
Constructors Constructor Description TcpServerAcceptThread(MllpTcpServerConsumer consumer, ServerSocket serverSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
interrupt()
void
run()
The main ServerSocket.accept() loop-
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 Detail
-
TcpServerAcceptThread
public TcpServerAcceptThread(MllpTcpServerConsumer consumer, ServerSocket serverSocket)
-
-
Method Detail
-
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.
-
-