Connection represent a connection to a Destination and allow applications to send
requests via send(Request, Response.CompleteListener) .
Connections are normally pooled by Destinations, but unpooled Connections
may be created by applications that want to do their own connection management via
Destination#newConnection(Promise) and Connection#close().
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. |
| public default SocketAddress | |
| public default SocketAddress | |
| public boolean | |
| public void | send(Request
the request to send request, Response.the response listener listenerSends a request with an associated response listener. |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getLocalSocketAddress | back to summary |
|---|---|
public default SocketAddress getLocalSocketAddress()
| |
| getRemoteSocketAddress | back to summary |
|---|---|
public default SocketAddress getRemoteSocketAddress()
| |
| isClosed | back to summary |
|---|---|
public boolean isClosed()
| |
| send | back to summary |
|---|---|
| public void send(Request request, Response. Sends a request with an associated response listener.
| |