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() |
boolean |
isClosed() |
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
boolean isClosed()
close()
Copyright © 2010 - 2020 Adobe. All Rights Reserved