public class ServerConnectionAsyc extends ServerConnection
Channel
to pass information and a ServerHandler
to process the message.
Asynchronous is recognised by a void
return type and runs on port '(blocking server port + 1)'.channel, HTTPGSTART, HTTPMEND, HTTPPSTART, port, serverHandler, syncOn, timeOut
Constructor and Description |
---|
ServerConnectionAsyc(java.nio.channels.AsynchronousSocketChannel theChannel,
long timeOut,
ServerHandler serverHandler)
Create a new instance of ServerListenerAsync.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Start the message processing
|
convertRequest, httpHeaders
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
public ServerConnectionAsyc(java.nio.channels.AsynchronousSocketChannel theChannel, long timeOut, ServerHandler serverHandler) throws java.lang.Exception
theChannel
- the listener channel.timeOut
- timeout for receiving continuous message.serverHandler
- the server handler that processes the message.java.lang.Exception
- any error.