| Modifier and Type | Field and Description |
|---|---|
| private final Log | |
| private final HttpClientConnection | |
| private final HttpClientConnectionManager | |
| private final AtomicBoolean | |
| private volatile boolean | |
| private volatile Object | |
| private volatile TimeUnit | |
| private volatile long |
| Access | Constructor and Description |
|---|---|
| public | ConnectionHolder(final Log log, final HttpClientConnectionManager manager, final HttpClientConnection managedConn)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | abortConnection()
Implements org. |
| public boolean | cancel()
Implements org. |
| public void | close()
Implements java. |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| private void | |
| public void | releaseConnection()
Implements org. |
| public void | |
| public void |
| log | back to summary |
|---|---|
| private final Log log | |
| managedConn | back to summary |
|---|---|
| private final HttpClientConnection managedConn | |
| manager | back to summary |
|---|---|
| private final HttpClientConnectionManager manager | |
| released | back to summary |
|---|---|
| private final AtomicBoolean released | |
| reusable | back to summary |
|---|---|
| private volatile boolean reusable | |
| state | back to summary |
|---|---|
| private volatile Object state | |
| timeUnit | back to summary |
|---|---|
| private volatile TimeUnit timeUnit | |
| validDuration | back to summary |
|---|---|
| private volatile long validDuration | |
| ConnectionHolder | back to summary |
|---|---|
| public ConnectionHolder(final Log log, final HttpClientConnectionManager manager, final HttpClientConnection managedConn) | |
| abortConnection | back to summary |
|---|---|
| public void abortConnection() Implements org. Doc from org. Releases the connection without the option of keep-alive.
This is a "hard" release that implies a shutdown of the connection.
Use
| |
| cancel | back to summary |
|---|---|
| public boolean cancel() Implements org. Doc from org. Cancels the ongoing operation or process.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements 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
| |
| isReleased | back to summary |
|---|---|
| public boolean isReleased() | |
| isReusable | back to summary |
|---|---|
| public boolean isReusable() | |
| markNonReusable | back to summary |
|---|---|
| public void markNonReusable() | |
| markReusable | back to summary |
|---|---|
| public void markReusable() | |
| releaseConnection | back to summary |
|---|---|
| private void releaseConnection(final boolean reusable) | |
| releaseConnection | back to summary |
|---|---|
| public void releaseConnection() Implements org. Doc from org. Releases the connection with the option of keep-alive. This is a
"graceful" release and may cause IO operations for consuming the
remainder of a response entity. Use
| |
| setState | back to summary |
|---|---|
| public void setState(final Object state) | |
| setValidFor | back to summary |
|---|---|
| public void setValidFor(final long duration, final TimeUnit timeUnit) | |