Top Description Methods
org.apache.hc.core5.io

public Interface ModalCloseable

extends Closeable
Known Direct Subinterfaces
org.apache.hc.core5.pool.ManagedConnPool, org.apache.hc.core5.reactor.IOReactor, org.apache.hc.core5.reactor.ListenerEndpoint, org.apache.hc.core5.http.SocketModalCloseable
Known Direct Implementers
org.apache.hc.core5.reactor.AbstractIOSessionPool, org.apache.hc.core5.reactor.InternalChannel, org.apache.hc.core5.http.impl.bootstrap.HttpRequester, org.apache.hc.core5.http.impl.bootstrap.HttpServer
Imports
java.io.Closeable

Process or endpoint that can be closed either immediately or gracefully.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
close(CloseMode
How to close the receiver.
closeMode
)

Closes this process or endpoint and releases any system resources associated with it.

Inherited from java.io.Closeable:
close

Method Detail

closeback to summary
public void close(CloseMode closeMode)

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:CloseMode

How to close the receiver.