java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.page.CouldNotLockPageException
- All Implemented Interfaces:
Serializable
An exception that is being thrown when a second thread attempts to get
the lock on a page instance that is currently locked by another thread and it cannot
do that for some specified
duration
-
Constructor Summary
ConstructorDescriptionCouldNotLockPageException
(int page, String threadName, Duration timeout) Construct.CouldNotLockPageException
(int page, String threadName, Duration timeout, Throwable cause) Construct. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CouldNotLockPageException
Construct.- Parameters:
page
- the id of the page instance which is already lockedthreadName
- the name of the thread that attempts to acquire the lock on the pagetimeout
- the duration that the second thread waited for the lock
-
CouldNotLockPageException
Construct.- Parameters:
page
- the id of the page instance which is already lockedthreadName
- the name of the thread that attempts to acquire the lock on the pagetimeout
- the duration that the second thread waited for the lockcause
- a placeholder for the stacktrace of the thread that holds the lock
-
-
Method Details
-
getPage
- Returns:
- page
-
getTimeout
- Returns:
- timeout
-
getThreadName
- Returns:
- threadName
-