public abstract void release () throws IOException

Releases this lock.

If this lock object is valid then invoking this method releases the lock and renders the object invalid. If this lock object is invalid then invoking this method has no effect.

ClosedChannelException     If the channel that was used to acquire this lock is no longer open
IOException     If an I/O error occurs