Interface ExchangeChannel
- All Known Subinterfaces:
ExchangeClient
- All Known Implementing Classes:
HeaderExchangeClient
ExchangeChannel. (API/SPI, Prototype, ThreadSafe)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(int timeout) graceful close.get message handler.Deprecated.Deprecated.request
(Object request, int timeout, ExecutorService executor) send request.request
(Object request, ExecutorService executor) send request.Methods inherited from interface org.apache.dubbo.remoting.Channel
getAttribute, getRemoteAddress, hasAttribute, isConnected, removeAttribute, setAttribute
Methods inherited from interface org.apache.dubbo.remoting.Endpoint
close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClose
-
Method Details
-
request
Deprecated.send request.- Parameters:
request
-- Returns:
- response future
- Throws:
RemotingException
-
request
Deprecated.send request.- Parameters:
request
-timeout
-- Returns:
- response future
- Throws:
RemotingException
-
request
CompletableFuture<Object> request(Object request, ExecutorService executor) throws RemotingException send request.- Parameters:
request
-- Returns:
- response future
- Throws:
RemotingException
-
request
CompletableFuture<Object> request(Object request, int timeout, ExecutorService executor) throws RemotingException send request.- Parameters:
request
-timeout
-- Returns:
- response future
- Throws:
RemotingException
-
getExchangeHandler
ExchangeHandler getExchangeHandler()get message handler.- Returns:
- message handler
-
close
void close(int timeout) graceful close.
-