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, yield
public IncomingTcpConnection(int version, boolean compressed, java.net.Socket socket, java.util.Set<java.io.Closeable> group)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2017 The Apache Software Foundation