W3cubDocs

/Haxe Java

Lock

package java.util.concurrent.locks

implemented by ReentrantLock

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

Methods

@:overload lock ():Void

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

@:overload newCondition ():Condition

@: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/Lock.html