Class InversibleLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opendaylight.controller.cluster.access.client.InversibleLockException
- All Implemented Interfaces:
Serializable
Exception thrown from
InversibleLock.optimisticRead() and can be used to wait for the racing write
to complete using awaitResolution().- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidBlock until the write that cause this exception completes.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
awaitResolution
public void awaitResolution()Block until the write that cause this exception completes.- Throws:
IllegalStateException- if the blocking is interrupted
-