public interface SoChannel<T>
| 限定符和类型 | 方法和说明 |
|---|---|
net.hasor.cobble.concurrent.future.Future<T> |
close()
close this channel.
|
net.hasor.cobble.concurrent.future.Future<T> |
closeNow()
close this channel now.
|
<T> T |
findPipeContext(Class<T> serviceType)
Get the attachment for
PipeContext |
Object |
getAttribute(String key)
get SoChannel attributes
|
long |
getChannelID()
channel id
|
SoContext |
getContext()
get context
|
long |
getCreatedTime()
channel accept time
|
long |
getLastActiveTime()
The last time data was received or sent
|
SocketAddress |
getLocalAddr()
local
SocketAddress |
SocketAddress |
getRemoteAddr()
get remote address of the channel
|
boolean |
isClient()
a connect
NetChannel |
boolean |
isClose()
return close status.
|
boolean |
isListen()
|
boolean |
isServer()
an accept
NetChannel |
void |
setAttribute(String key,
Object value)
set any object to SoChannel attributes
|
long getChannelID()
long getCreatedTime()
long getLastActiveTime()
boolean isListen()
boolean isServer()
NetChannelboolean isClient()
NetChannelSocketAddress getLocalAddr()
SocketAddressSocketAddress getRemoteAddr()
SoContext getContext()
net.hasor.cobble.concurrent.future.Future<T> close()
The closeNow() and close() methods are valid if they are called first
net.hasor.cobble.concurrent.future.Future<T> closeNow()
boolean isClose()
<T> T findPipeContext(Class<T> serviceType)
PipeContextCopyright © 2022–2024. All rights reserved.