Modifier and Type | Class and Description |
---|---|
static class |
Connection.Callback |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Connection(Socket server_socket,
Service service)
Takes socket and service to execute.
|
Connection(Socket server_socket,
Service service,
Connection.Callback callback)
Takes socket and service to execute and a callback to run when processing of the connection has completed
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Obtains input and output streams and executes work
required by the service.
|
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 Connection(Socket server_socket, Service service)
public Connection(Socket server_socket, Service service, Connection.Callback callback)
Copyright © 2021 JBoss by Red Hat. All rights reserved.