public interface Channel
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
Object |
getAttribute(String key)
get attribute in context.
|
Object |
getConnAttribute(String key)
get attribute in connection.
|
InetSocketAddress |
getLocalAddress()
get local address.
|
InetSocketAddress |
getRemoteAddress()
get remote address.
|
javax.ws.rs.client.WebTarget |
getWebTarget()
for rest api
|
boolean |
isConnected()
is connected.
|
void |
setAttribute(String key,
Object value)
set attribute in context.
|
void |
setConnAttribute(String key,
Object value)
set attribute in connection.
|
InetSocketAddress getRemoteAddress()
InetSocketAddress getLocalAddress()
boolean isConnected()
void setAttribute(String key, Object value)
key - key.value - value.Object getConnAttribute(String key)
key - key.void setConnAttribute(String key, Object value)
key - key.value - value.javax.ws.rs.client.WebTarget getWebTarget()
void close()
Copyright © 2023 The Ant Financial. All rights reserved.