Package org.apache.hc.core5.io
Interface ModalCloseable
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
BHttpConnection,HttpClientConnection,HttpConnection,HttpConnectionEventHandler,HttpServerConnection,IOReactor,IOReactorService,IOSession,ListenerEndpoint,ManagedConnPool<T,,C> ProtocolIOSession,SocketModalCloseable
- All Known Implementing Classes:
AbstractIOSessionPool,AsyncRequester,AsyncServer,ClientHttp1IOEventHandler,ClientHttp1StreamDuplexer,DefaultBHttpClientConnection,DefaultBHttpServerConnection,DefaultConnectingIOReactor,DefaultListeningIOReactor,HttpAsyncRequester,HttpAsyncServer,HttpRequester,HttpServer,LaxConnPool,RouteSegmentedConnPool,ServerHttp1IOEventHandler,ServerHttp1StreamDuplexer,SSLIOSession,StrictConnPool
Process or endpoint that can be closed either immediately or gracefully.
- Since:
- 5.0
-
Method Summary
-
Method Details
-
close
Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect.- Parameters:
closeMode- How to close the receiver.
-