Product Information > JADE Encyclopaedia of Classes – Volume 2 > Chapter 1 - System Classes > clearLockContentionStats

clearLockContentionStats

clearLockContentionStats();

The clearLockContentionStats method of the System class removes all existing lock contention data and restarts recording of lock contentions. A lock contention occurs when an attempt to lock a persistent object is queued or rejected because the object is already locked.

The lock contention table is cleared, but retains the same maximum size. Use this method for recording lock contention activity over set periods without having to end and begin lock contention recording multiple times.

Only the process that started lock contention recording can use this method. If any other process attempts to use this method, an exception is raised.

If lock contention recording is not active when this method is called, it has no effect.

This method is not available on a Compact JADE node, where it would result in a 1068 - Feature not available exception.