public class IncomingTcpConnection
extends java.lang.Thread
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
java.net.InetAddress |
from |
| Constructor and Description |
|---|
IncomingTcpConnection(int version,
boolean compressed,
java.net.Socket socket,
java.util.Set<java.io.Closeable> group) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
run()
A new connection will either stream or message for its entire lifetime: because streaming
bypasses the InputStream implementations to use sendFile, we cannot begin buffering until
we've determined the type of the connection.
|
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, yieldpublic IncomingTcpConnection(int version,
boolean compressed,
java.net.Socket socket,
java.util.Set<java.io.Closeable> group)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2016 The Apache Software Foundation