Interface IdleSensible

All Known Subinterfaces:
Client, ExchangeClient, ExchangeServer, RemotingServer
All Known Implementing Classes:
AbstractClient, AbstractConnectionClient, AbstractPortUnificationServer, AbstractServer, ClientDelegate, ExchangeServerDelegate, HeaderExchangeClient, HeaderExchangeServer, ServerDelegate

public interface IdleSensible
Indicate whether the implementation (for both server and client) has the ability to sense and handle idle connection. If the server has the ability to handle idle connection, it should close the connection when it happens, and if the client has the ability to handle idle connection, it should send the heartbeat to the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Whether the implementation can sense and handle the idle connection.
  • Method Details

    • canHandleIdle

      default boolean canHandleIdle()
      Whether the implementation can sense and handle the idle connection. By default, it's false, the implementation relies on dedicated timer to take care of idle connection.
      Returns:
      whether it has the ability to handle idle connection