ensureValid

abstract fun ensureValid()

Best effort check that this lock is still valid. Locks could become invalidated externally for a number of reasons, for example if a user deletes the lock file manually or when a network filesystem is in use.

Throws

IOException

if the lock is no longer valid.