Package io.vertx.mutiny.core.shareddata
Class Lock
java.lang.Object
io.vertx.mutiny.core.shareddata.Lock
- All Implemented Interfaces:
MutinyDelegate
An asynchronous exclusive lock which can be obtained from any node in the cluster.
When the lock is obtained, no-one else in the cluster can obtain the lock with the same name until the lock is released.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
Lock
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.core.shareddata.LockGet the delegate instance.inthashCode()static LocknewInstance(io.vertx.core.shareddata.Lock delegate) Creates a new instance of theLock.voidrelease()Release the lock.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Lock
-
Method Details
-
getDelegate
public io.vertx.core.shareddata.Lock getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
release
public void release()Release the lock. Once the lock is released another will be able to obtain the lock. -
hashCode
public int hashCode() -
equals
-
toString
-