Package org.apache.wicket.page
Class CouldNotLockPageException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.page.CouldNotLockPageException
-
- All Implemented Interfaces:
Serializable
public class CouldNotLockPageException extends RuntimeException
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 specifiedduration
-
-
Constructor Summary
Constructors Constructor Description CouldNotLockPageException(int page, String threadName, Duration timeout)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPage()
String
getThreadName()
Duration
getTimeout()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CouldNotLockPageException
public CouldNotLockPageException(int page, String threadName, Duration timeout)
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
-
-
Method Detail
-
getPage
public int getPage()
- Returns:
- page
-
getTimeout
public Duration getTimeout()
- Returns:
- timeout
-
getThreadName
public String getThreadName()
- Returns:
- threadName
-
-