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:
AbstractH2IOEventHandler,AbstractH2StreamMultiplexer,AbstractHttp1IOEventHandler,AbstractHttp1StreamDuplexer,AbstractIOReactorBase,AbstractIOSessionPool,AbstractSingleCoreIOReactor,AsyncRequester,AsyncServer,BHttpConnectionBase,ClientH2IOEventHandler,ClientH2PrefaceHandler,ClientH2StreamMultiplexer,ClientHttp1IOEventHandler,ClientHttp1StreamDuplexer,ClientSessionEndpoint,DefaultBHttpClientConnection,DefaultBHttpServerConnection,DefaultConnectingIOReactor,DefaultListeningIOReactor,H2AsyncRequester,H2ConnPool,H2MultiplexingRequester,HttpAsyncRequester,HttpAsyncServer,HttpProtocolNegotiator,HttpRequester,HttpServer,InternalChannel,InternalConnectChannel,InternalDataChannel,IOSessionImpl,LaxConnPool,ListenerEndpointImpl,LoggingBHttpClientConnection,LoggingBHttpServerConnection,LoggingIOSession,MultiCoreIOReactor,PrefaceHandlerBase,ServerH2IOEventHandler,ServerH2PrefaceHandler,ServerH2StreamMultiplexer,ServerHttp1IOEventHandler,ServerHttp1StreamDuplexer,SingleCoreIOReactor,SingleCoreListeningIOReactor,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.
-