public interface ConnectionReleaseTrigger
EofSensorInputStream或ManagedHttpClientConnection本身。
该接口中的方法可以安全地被多次调用。 第一次调用释放连接,后续调用将被忽略。
| Modifier and Type | Method and Description |
|---|---|
void |
abortConnection()
释放连接而不选择保持活动。
|
void |
releaseConnection()
释放与keep-alive选项的连接。
|
void releaseConnection()
throws IOException
IOException - 在IO问题的情况下。
连接将会被释放。
void abortConnection()
throws IOException
IOException - 在IO问题的情况下。
连接将会被释放。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.