public class TcpConnection extends Object
| Constructor and Description |
|---|
TcpConnection() |
| Modifier and Type | Method and Description |
|---|---|
PoolTcpEndpoint |
getEndpoint() |
Socket |
getSocket() |
static int |
readLine(InputStream in,
byte[] b,
int off,
int len) |
void |
recycle() |
void |
setEndpoint(PoolTcpEndpoint endpoint) |
static void |
setMaxShutdownTries(int mst) |
void |
setSocket(Socket socket) |
static void |
shutdownInput(Socket socket) |
public static void setMaxShutdownTries(int mst)
public void setEndpoint(PoolTcpEndpoint endpoint)
public PoolTcpEndpoint getEndpoint()
public void setSocket(Socket socket)
public Socket getSocket()
public void recycle()
public static int readLine(InputStream in, byte[] b, int off, int len) throws IOException
IOExceptionpublic static void shutdownInput(Socket socket) throws IOException
IOExceptionCopyright © 2005–2017 Oracle Corporation. All rights reserved.