Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.util.concurrent.locks
Version documentée : Java SE 17

Classe « StampedLock »

Informations générales

Héritage

java.lang.Object
    java.util.concurrent.locks.StampedLock

Définition

public class StampedLock extends java.lang.Object
implements java.io.Serializable

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
StampedLock()

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public int readLockCount R/-
public boolean readLocked R/-
public boolean writeLocked R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public Lock asReadLock()
public ReadWriteLock asReadWriteLock()
public Lock asWriteLock()
public int getReadLockCount()
public static boolean isLockStamp( long stamp )
public static boolean isOptimisticReadStamp( long stamp )
public boolean isReadLocked()
public static boolean isReadLockStamp( long stamp )
public boolean isWriteLocked()
public static boolean isWriteLockStamp( long stamp )
public long readLock()
public long readLockInterruptibly()
public String toString()
public long tryConvertToOptimisticRead( long stamp )
public long tryConvertToReadLock( long stamp )
public long tryConvertToWriteLock( long stamp )
public long tryOptimisticRead()
public long tryReadLock( long time, TimeUnit unit )
public long tryReadLock()
public boolean tryUnlockRead()
public boolean tryUnlockWrite()
public long tryWriteLock( long time, TimeUnit unit )
public long tryWriteLock()
public void unlock( long stamp )
public void unlockRead( long stamp )
public void unlockWrite( long stamp )
public boolean validate( long stamp )
public long writeLock()
public long writeLockInterruptibly()

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait