Package de.galan.commons.net.flux
Class CommonHttpClient.TimeoutThread
- java.lang.Object
-
- java.lang.Thread
-
- de.galan.commons.net.flux.CommonHttpClient.TimeoutThread
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- CommonHttpClient
public static class CommonHttpClient.TimeoutThread extends Thread
Some sites may have timeouts, but the connection timeout does not seem to work reliably. Therefore this Thread can be used to force quiting the blocking thread. (The initial problematic site was http://www.qionghaifc.com/)
-
-
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 TimeoutThread(HttpURLConnection connection, Integer timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
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, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-