Class RunnableQueue.LockableLink

  • Enclosing class:
    RunnableQueue

    protected static class RunnableQueue.LockableLink
    extends RunnableQueue.Link
    To store a Runnable with an object waiting for him to be executed.
    • Constructor Detail

      • LockableLink

        public LockableLink​(java.lang.Runnable r)
        Creates a new link.
    • Method Detail

      • isLocked

        public boolean isLocked()
        Whether the link is actually locked.
      • lock

        public void lock()
                  throws java.lang.InterruptedException
        Locks this link.
        Throws:
        java.lang.InterruptedException