Class WApplication.UpdateLock

java.lang.Object
eu.webtoolkit.jwt.WApplication.UpdateLock
All Implemented Interfaces:
java.lang.AutoCloseable
Enclosing class:
WApplication

public static class WApplication.UpdateLock
extends java.lang.Object
implements java.lang.AutoCloseable
A synchronization lock for manipulating and updating the application and its widgets outside of the event loop.

You need to take this lock only when you want to manipulate widgets outside of the event loop. LabelOption::Inside the event loop, this lock is already held by the library itself.

See Also:
WApplication.getUpdateLock()
  • Method Summary

    Modifier and Type Method Description
    void close()
    Releases the lock.
    void release()
    Releases the lock.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • release

      public void release()
      Releases the lock.
    • close

      public void close()
      Releases the lock.

      Calls release()

      Implemented in order to support the AutoCloseable interface.

      Specified by:
      close in interface java.lang.AutoCloseable