| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| protected final SocketChannel | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile PlainHttpConnection. | |
| private final AtomicReference | |
| private final ReentrantLock | |
| private final SocketTube | |
| private final HttpConnection. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PlainHttpConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String label)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ConnectionPool. | |
| pack-priv SocketChannel | |
| public void | close()
Implements abstract jdk. Implements java. Closes this connection. |
| pack-priv void | close(Throwable cause)
Implements abstract jdk. Closes this connection due to the given cause. |
| public CompletableFuture | connectAsync(Exchange<?> exchange)
Implements abstract jdk. Initiates the connect phase. |
| pack-priv boolean | connected()
Implements abstract jdk. Tells whether, or not, this connection is connected to its destination. |
| pack-priv boolean | |
| public CompletableFuture | finishConnect()
Implements abstract jdk. Finishes the connection phase. |
| pack-priv final FlowTube | getConnectionFlow()
Implements abstract jdk. Returns the underlying connection flow, if applicable. |
| pack-priv Throwable | |
| pack-priv boolean | isProxied()
Implements abstract jdk. Tells whether, or not, this connection is proxied. |
| pack-priv boolean | isSecure()
Implements abstract jdk. Tells whether, or not, this connection is secure ( over SSL ) |
| private PlainHttpConnection. | newConnectTimer(Exchange<?> exchange, CompletableFuture<?> cf)
Returns a ConnectTimerEvent iff there is a connect timeout duration, otherwise null. |
| pack-priv InetSocketAddress | proxy()
Implements abstract jdk. Returns the address of the proxy used by this connection. |
| pack-priv HttpConnection. | publisher()
Implements abstract jdk. Returns the HTTP publisher associated with this connection. |
| public String | toString()
Overrides jdk. Returns a string representation of the object. |
| chan | back to summary |
|---|---|
| protected final SocketChannel chan | |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| connected | back to summary |
|---|---|
| private volatile boolean connected | |
| connectTimerEvent | back to summary |
|---|---|
| private volatile PlainHttpConnection. | |
| errorRef | back to summary |
|---|---|
| private final AtomicReference<Throwable> errorRef | |
| stateLock | back to summary |
|---|---|
| private final ReentrantLock stateLock | |
| tube | back to summary |
|---|---|
| private final SocketTube tube | |
| writePublisher | back to summary |
|---|---|
| private final HttpConnection. | |
| PlainHttpConnection | back to summary |
|---|---|
| pack-priv PlainHttpConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String label) | |
| cacheKey | back to summary |
|---|---|
| pack-priv ConnectionPool. Implements abstract jdk.
| |
| channel | back to summary |
|---|---|
| pack-priv SocketChannel channel() Implements abstract jdk.
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract jdk. Implements java. Doc from jdk. Closes this connection.
| |
| close | back to summary |
|---|---|
| pack-priv void close(Throwable cause) Implements abstract jdk. Doc from jdk. Closes this connection due to the given cause.
| |
| connectAsync | back to summary |
|---|---|
| public CompletableFuture Implements abstract jdk. Doc from jdk. Initiates the connect phase. Returns a CompletableFuture that completes when the underlying TCP connection has been established or an error occurs.
| |
| connected | back to summary |
|---|---|
| pack-priv boolean connected() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is connected to its destination.
| |
| connectionOpened | back to summary |
|---|---|
| pack-priv boolean connectionOpened() | |
| finishConnect | back to summary |
|---|---|
| public CompletableFuture Implements abstract jdk. Doc from jdk. Finishes the connection phase. Returns a CompletableFuture that completes when any additional, type specific, setup has been done. Must be called after connectAsync.
| |
| getConnectionFlow | back to summary |
|---|---|
| pack-priv final FlowTube getConnectionFlow() Implements abstract jdk. Doc from jdk. Returns the underlying connection flow, if applicable.
| |
| getError | back to summary |
|---|---|
| pack-priv Throwable getError(Throwable cause) | |
| isProxied | back to summary |
|---|---|
| pack-priv boolean isProxied() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is proxied. Returns true for tunnel connections, or clear connection to any host through proxy.
| |
| isSecure | back to summary |
|---|---|
| pack-priv boolean isSecure() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is secure ( over SSL )
| |
| newConnectTimer | back to summary |
|---|---|
| private PlainHttpConnection. Returns a ConnectTimerEvent iff there is a connect timeout duration, otherwise null. | |
| proxy | back to summary |
|---|---|
| pack-priv InetSocketAddress proxy() Implements abstract jdk. Doc from jdk. Returns the address of the proxy used by this connection.
Returns the proxy address for tunnel connections, or
clear connection to any host through proxy.
Returns
| |
| publisher | back to summary |
|---|---|
| pack-priv HttpConnection. Implements abstract jdk. Doc from jdk. Returns the HTTP publisher associated with this connection. May be null if invoked before connecting.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private final CompletableFuture | |
| private final Exchange |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort(IOException ioe)
Implements abstract jdk. Called when an error occurs during registration, or when the selector has been shut down. |
| public SelectableChannel | |
| public void | |
| public int | interestOps()
Implements abstract jdk. Returns the selector interest op flags OR'd |
| cf | back to summary |
|---|---|
| private final CompletableFuture<Void> cf | |
| exchange | back to summary |
|---|---|
| private final Exchange<?> exchange | |
| ConnectEvent | back to summary |
|---|---|
| pack-priv ConnectEvent(CompletableFuture<Void> cf, Exchange<?> exchange) | |
| abort | back to summary |
|---|---|
| public void abort(IOException ioe) Implements abstract jdk. Doc from jdk. Called when an error occurs during registration, or when the selector has been shut down. Aborts all exchanges.
| |
| channel | back to summary |
|---|---|
| public SelectableChannel channel() Implements abstract jdk. Doc from jdk. Returns the channel
| |
| handle | back to summary |
|---|---|
| public void handle() Implements abstract jdk. Doc from jdk. Called when event occurs
| |
| interestOps | back to summary |
|---|---|
| public int interestOps() Implements abstract jdk. Doc from jdk. Returns the selector interest op flags OR'd
| |
| Modifier and Type | Field and Description |
|---|---|
| private final CompletableFuture | |
| private final Exchange |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | toString()
Overrides jdk. Returns a string representation of the object. |
| cf | back to summary |
|---|---|
| private final CompletableFuture<?> cf | |
| exchange | back to summary |
|---|---|
| private final Exchange<?> exchange | |
| ConnectTimerEvent | back to summary |
|---|---|
| pack-priv ConnectTimerEvent(Duration duration, Exchange<?> exchange, CompletableFuture<?> cf) | |
| handle | back to summary |
|---|---|
| public void handle() Implements abstract jdk.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |