Package org.jgrapes.webconsole.base
Class WebSocketInputSink
java.lang.Object
java.lang.Thread
org.jgrapes.webconsole.base.WebSocketInputSink
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionWebSocketInputSink
(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
feed
(ManagedBuffer<CharBuffer> input) Forward the data to the JSON decoder.void
run()
toString()
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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Field Details
-
mapper
-
-
Constructor Details
-
WebSocketInputSink
Instantiates a new web socket input reader.- Parameters:
wsInPipeline
- the ws in pipelineconsoleChannel
- the web console channel
-
-
Method Details
-
feed
Forward the data to the JSON decoder.- Parameters:
input
- the data to be converted- 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
-
toString
-