public interface ConnectionReleaseTrigger
EofSensorInputStream or the ManagedHttpClientConnection itself.
The methods in this interface can safely be called multiple times. The first invocation releases the connection, subsequent calls are ignored.
| Modifier and Type | Method and Description |
|---|---|
void |
abortConnection()
Releases the connection without the option of keep-alive.
|
void |
releaseConnection()
Releases the connection with the option of keep-alive.
|
void releaseConnection()
throws IOException
abortConnection for a hard release. The
connection may be reused as specified by the duration.IOException - in case of an IO problem. The connection will be released
anyway.void abortConnection()
throws IOException
releaseConnection() for a graceful release.IOException - in case of an IO problem.
The connection will be released anyway.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.