Package org.jgrapes.webconsole.base
Class WebSocketInputReader
java.lang.Object
java.lang.Thread
org.jgrapes.webconsole.base.WebSocketInputReader
- All Implemented Interfaces:
Runnable
-
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
ConstructorsConstructorDescriptionWebSocketInputReader
(EventPipeline wsInPipeline, ConsoleConnection consoleChannel) Instantiates a new web socket input reader. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Forward the close to the JSON decoder.void
run()
void
write
(CharBuffer buffer) Forward the data to the JSON decoder.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
-
Constructor Details
-
WebSocketInputReader
Instantiates a new web socket input reader.- Parameters:
wsInPipeline
- the ws in pipelineconsoleChannel
- the web console channel
-
-
Method Details
-
write
Forward the data to the JSON decoder.- Parameters:
buffer
- the buffer- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
Forward the close to the JSON decoder.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
run
-