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 specified duration
- See Also:
IRequestCycleSettings.setTimeout(org.apache.wicket.util.time.Duration)
,
IExceptionSettings.setThreadDumpStrategy(org.apache.wicket.settings.IExceptionSettings.ThreadDumpStrategy)
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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
getPage
public int getPage()
- Returns:
- page
getTimeout
public Duration getTimeout()
- Returns:
- timeout
getThreadName
public String getThreadName()
- Returns:
- threadName
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.