isValid

open override fun isValid(timeout: Int): Boolean

Checks if this session is still valid and the underlying connection is alive.

A session that has been closed or aborted answers false rather than raising, the way JDBC has the same question answered for a closed connection.

Return

true if the session is valid, false otherwise.

Parameters

timeout

The maximum time in seconds to wait for a database response.