|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectjava.net.Socket
cloudsea.datacollector.socketpool.ConnectionAdapter
public class ConnectionAdapter
构造方法摘要 | |
---|---|
ConnectionAdapter()
默认的构造函数 |
方法摘要 | |
---|---|
void |
close()
当客户端关闭连接的时候状态设置为true(空闲) |
void |
destroy()
注销连接 |
boolean |
isFree()
判断此连接是否空闲 |
void |
setBusy()
当使用此连接的时候设置状态为false(忙碌) |
void |
trueClose()
真实的关闭连接 |
从类 java.net.Socket 继承的方法 |
---|
bind, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public ConnectionAdapter()
方法详细信息 |
---|
public boolean isFree()
public void setBusy()
public void close()
java.net.Socket
中的 close
public void trueClose() throws java.io.IOException
java.io.IOException
public void destroy()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |