Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
is
The
InputStream to process |
protected CastChannel.CastMessage |
pongMessage
The cached
StandardMessage.Pong message |
protected boolean |
running
The "running" state
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
InputHandler(InputStream inputStream)
Creates a new instance bound to the specified
InputStream. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
processStringMessage(ImmutableCastMessage.ImmutableStringCastMessage message,
String jsonMessage)
Processes a single incoming string-based message from the specified
parameters.
|
void |
run() |
void |
stopProcessing()
Tells this
Channel.InputHandler to stop processing and shut down. |
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, yieldprotected volatile boolean running
@Nonnull protected final InputStream is
InputStream to process@Nonnull protected final CastChannel.CastMessage pongMessage
StandardMessage.Pong messagepublic InputHandler(@Nonnull InputStream inputStream)
InputStream.inputStream - the InputStream to process.protected void processStringMessage(@Nonnull ImmutableCastMessage.ImmutableStringCastMessage message, @Nonnull String jsonMessage)
message - the ImmutableCastMessage.ImmutableStringCastMessage to process.jsonMessage - the adapted string payload to use.public void stopProcessing()
Channel.InputHandler to stop processing and shut down.Copyright © 2022. All rights reserved.