org.apache.wicket.page
Class CouldNotLockPageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
CouldNotLockPageException(int page, String threadName, Duration timeout)
          Construct.
 
Method Summary
 int getPage()
           
 String getThreadName()
           
 Duration getTimeout()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CouldNotLockPageException

public CouldNotLockPageException(int page,
                                 String threadName,
                                 Duration timeout)
Construct.

Parameters:
page - the id of the page instance which is already locked
threadName - the name of the thread that attempts to acquire the lock on the page
timeout - 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


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.