다음을 통해 공유


StampedLock.IsOptimisticReadStamp(Int64) Method

Definition

Tells whether a stamp represents a successful optimistic read.

[Android.Runtime.Register("isOptimisticReadStamp", "(J)Z", "", ApiSince=33)]
public static bool IsOptimisticReadStamp (long stamp);
[<Android.Runtime.Register("isOptimisticReadStamp", "(J)Z", "", ApiSince=33)>]
static member IsOptimisticReadStamp : int64 -> bool

Parameters

stamp
Int64

a stamp returned by a previous StampedLock operation

Returns

true if the stamp was returned by a successful optimistic read operation, that is, a non-zero return from #tryOptimisticRead() or #tryConvertToOptimisticRead(long)

Attributes

Remarks

Tells whether a stamp represents a successful optimistic read.

Added in 10.

Java documentation for java.util.concurrent.locks.StampedLock.isOptimisticReadStamp(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to