W3cubDocs

/Haxe Java

ReentrantLock

package java.util.concurrent.locks

implements Lock, Serializable

@:libType@:javaNative@:native("java.util.concurrent.locks.ReentrantLock")@:javaCanonical("java.util.concurrent.locks","ReentrantLock") Available on java

Constructor

@:overload new (param1:Bool)

@:overload new ()

Methods

@:overload getHoldCount ():Int

@:overload @:final getQueueLength ():Int

@:overload getWaitQueueLength (param1:Condition):Int

@:overload @:final hasQueuedThread (param1:Thread):Bool

@:overload @:final hasQueuedThreads ():Bool

@:overload hasWaiters (param1:Condition):Bool

@:overload @:final isFair ():Bool

@:overload isHeldByCurrentThread ():Bool

@:overload isLocked ():Bool

@:overload lock ():Void

@:overload @:throws("java.lang.InterruptedException") lockInterruptibly ():Void

@:overload newCondition ():Condition

@:overload toString ():String

@:overload @:throws("java.lang.InterruptedException") tryLock (param1:Int64, param2:TimeUnit):Bool

@:overload tryLock ():Bool

@:overload unlock ():Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/util/concurrent/locks/ReentrantLock.html