public interface Channel
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
close the channel gracefully.
|
InetSocketAddress |
getLocalAddress()
get local socket address.
|
InetSocketAddress |
getRemoteAddress()
get remote socket address
|
URL |
getUrl() |
boolean |
isAvailable()
the node available status
|
boolean |
isClosed()
is closed.
|
boolean |
open()
open the channel
|
Response |
request(Request request)
send request.
|
InetSocketAddress getLocalAddress()
InetSocketAddress getRemoteAddress()
Response request(Request request) throws TransportException
request - TransportExceptionboolean open()
void close()
void close(int timeout)
boolean isClosed()
boolean isAvailable()
URL getUrl()
Copyright © 2017. All rights reserved.