Constructor and Description |
---|
SendProcessorKeep(NetSocketWriterKeep net)
Initialize.
|
Modifier and Type | Method and Description |
---|---|
void |
clearQueue()
Clear message.
|
void |
close()
Close sender.
|
void |
enableClearQueue(boolean enable)
Whether to allow the check message to be cleared after disconnection.
|
void |
run() |
void |
send(java.lang.String message)
Send message.
|
void |
sendClose(java.lang.String message)
Close connection after sent the message.
|
activeCount, checkAccess, 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
public SendProcessorKeep(NetSocketWriterKeep net)
net
- netpublic void clearQueue()
public void enableClearQueue(boolean enable)
enable
- default truepublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void send(java.lang.String message)
public void close()