Usually used by RemctlConnectionPool (in conjunction with RemctlConnectionFactory) for validating connections that are in the pool. Actions in isValid will also be performed on idle connections, to keep them alive.See
for configuring when
will be called, and
for where the strategy is plugged in.
When returning true, implementations must leave the connection in a state where it can be re-used. All implementations must be thread safe.
connectionThe connection to test