Package com.neovisionaries.ws.client
Class WebSocketThread
- java.lang.Object
-
- java.lang.Thread
-
- com.neovisionaries.ws.client.WebSocketThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ConnectThread
,FinishThread
,ReadingThread
,WritingThread
abstract class WebSocketThread extends java.lang.Thread
-
-
Field Summary
Fields Modifier and Type Field Description private ThreadType
mThreadType
protected WebSocket
mWebSocket
-
Constructor Summary
Constructors Constructor Description WebSocketThread(java.lang.String name, WebSocket ws, ThreadType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
callOnThreadCreated()
void
run()
protected abstract void
runMain()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
mWebSocket
protected final WebSocket mWebSocket
-
mThreadType
private final ThreadType mThreadType
-
-
Constructor Detail
-
WebSocketThread
WebSocketThread(java.lang.String name, WebSocket ws, ThreadType type)
-
-