public interface Connection extends Closeable
Connection
represent a connection to a Destination
and allow applications to send
requests via send(Request, Response.CompleteListener)
.
Connection
s are normally pooled by Destination
s, but unpooled Connection
s
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 AutoCloseable
close
in interface Closeable
Copyright © 1995-2015 Webtide. All Rights Reserved.