java.util.concurrent.locks

Class AbstractQueuedSynchronizer. ConditionObject

  • java.lang.Object
    • java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject
  • All Implemented Interfaces:
    Serializable, Condition
    Enclosing class:
    AbstractQueuedSynchronizer

    public class AbstractQueuedSynchronizer.ConditionObject
    extends Object
    implements Condition, Serializable
    Condition implementation for a AbstractQueuedSynchronizer serving as the basis of a Lock implementation.

    Method documentation for this class describes mechanics, not behavioral specifications from the point of view of Lock and Condition users. Exported versions of this class will in general need to be accompanied by documentation describing condition semantics that rely on those of the associated AbstractQueuedSynchronizer.

    This class is Serializable, but all fields are transient, so deserialized conditions have no waiters.

    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void await()
      Implements interruptible condition wait.
      boolean await(long time, TimeUnit unit)
      Implements timed condition wait.
      long awaitNanos(long nanosTimeout)
      Implements timed condition wait.
      void awaitUninterruptibly()
      Implements uninterruptible condition wait.
      boolean awaitUntil(Date deadline)
      Implements absolute timed condition wait.
      protected Collection<Thread> getWaitingThreads()
      Returns a collection containing those threads that may be waiting on this Condition.
      protected int getWaitQueueLength()
      Returns an estimate of the number of threads waiting on this condition.
      protected boolean hasWaiters()
      Queries whether any threads are waiting on this condition.
      void signal()
      Moves the longest-waiting thread, if one exists, from the wait queue for this condition to the wait queue for the owning lock.
      void signalAll()
      Moves all threads from the wait queue for this condition to the wait queue for the owning lock.

        

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 08/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/util/concurrent/locks/AbstractQueuedSynchronizer.ConditionObject.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, AbstractQueuedSynchronizer.Condi

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut