org.apache.hc.core5.http

## Interface SocketModalCloseable

- All Superinterfaces:
    AutoCloseable, Closeable, ModalCloseable
  All Known Subinterfaces:
    BHttpConnection, HttpClientConnection, HttpConnection, HttpConnectionEventHandler, HttpServerConnection, IOSession, ProtocolIOSession
  All Known Implementing Classes:
    ClientH2IOEventHandler, ClientH2StreamMultiplexer, ClientHttp1IOEventHandler, ClientHttp1StreamDuplexer, ClientHttpProtocolNegotiator, DefaultBHttpClientConnection, DefaultBHttpServerConnection, H2OnlyClientProtocolNegotiator, H2OnlyServerHttpProtocolNegotiator, LoggingBHttpClientConnection, LoggingBHttpServerConnection, LoggingIOSession, ServerH2IOEventHandler, ServerH2StreamMultiplexer, ServerHttp1IOEventHandler, ServerHttp1StreamDuplexer, ServerHttpProtocolNegotiator, SSLIOSession

      public interface SocketModalCloseable
      extends ModalCloseable

  A generic `ModalCloseable` backed by a network socket.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Timeout` | `getSocketTimeout()` Returns the socket timeout value.
    `void` | `setSocketTimeout(Timeout timeout)` Sets the socket timeout value.

    - ### Methods inherited from interface org.apache.hc.core5.io.ModalCloseable

      `close`

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### getSocketTimeout

          Timeout getSocketTimeout()

      Returns the socket timeout value.
      Returns:
        timeout value.

    - #### setSocketTimeout

          void setSocketTimeout(Timeout timeout)

      Sets the socket timeout value.
      Parameters:
        `timeout` - timeout value

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.