public abstract class AbstractTcpConnection extends Object implements TcpConnection
| 构造器和说明 |
|---|
AbstractTcpConnection(Session session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
TcpConnection |
closeCallback(Action0 closeCallback) |
void |
closeNow() |
TcpConnection |
exception(Action1<Throwable> exception) |
Object |
getAttachment() |
long |
getCloseTime() |
long |
getDuration() |
long |
getIdleTimeout() |
long |
getLastActiveTime() |
long |
getLastReadTime() |
long |
getLastWrittenTime() |
InetSocketAddress |
getLocalAddress() |
long |
getOpenTime() |
long |
getReadBytes() |
InetSocketAddress |
getRemoteAddress() |
int |
getSessionId() |
int |
getState() |
long |
getWrittenBytes() |
boolean |
isOpen() |
TcpConnection |
receive(Action1<ByteBuffer> buffer) |
void |
setAttachment(Object attachment) |
void |
shutdownInput() |
void |
shutdownOutput() |
public AbstractTcpConnection(Session session)
public TcpConnection receive(Action1<ByteBuffer> buffer)
receive 在接口中 TcpConnectionpublic TcpConnection exception(Action1<Throwable> exception)
exception 在接口中 TcpConnectionpublic Object getAttachment()
getAttachment 在接口中 TcpConnectionpublic void setAttachment(Object attachment)
setAttachment 在接口中 TcpConnectionpublic int getSessionId()
getSessionId 在接口中 TcpConnectionpublic long getOpenTime()
getOpenTime 在接口中 TcpConnectionpublic long getCloseTime()
getCloseTime 在接口中 TcpConnectionpublic long getDuration()
getDuration 在接口中 TcpConnectionpublic long getLastReadTime()
getLastReadTime 在接口中 TcpConnectionpublic long getLastWrittenTime()
getLastWrittenTime 在接口中 TcpConnectionpublic long getLastActiveTime()
getLastActiveTime 在接口中 TcpConnectionpublic long getReadBytes()
getReadBytes 在接口中 TcpConnectionpublic long getWrittenBytes()
getWrittenBytes 在接口中 TcpConnectionpublic TcpConnection closeCallback(Action0 closeCallback)
closeCallback 在接口中 TcpConnectionpublic void close()
close 在接口中 TcpConnectionpublic void closeNow()
closeNow 在接口中 TcpConnectionpublic void shutdownOutput()
shutdownOutput 在接口中 TcpConnectionpublic void shutdownInput()
shutdownInput 在接口中 TcpConnectionpublic int getState()
getState 在接口中 TcpConnectionpublic boolean isOpen()
isOpen 在接口中 TcpConnectionpublic InetSocketAddress getLocalAddress()
getLocalAddress 在接口中 TcpConnectionpublic InetSocketAddress getRemoteAddress()
getRemoteAddress 在接口中 TcpConnectionpublic long getIdleTimeout()
getIdleTimeout 在接口中 TcpConnectionCopyright © 2016. All rights reserved.