public interface Connection extends Closeable
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 close().| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
void send(Request request, Response.CompleteListener listener)
Request.send(Response.CompleteListener) will eventually call this method to send the request.
It is exposed to allow applications to send requests via unpooled connections.request - the request to sendlistener - the response listenervoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 1995-2015 Webtide. All Rights Reserved.