Class Lock

java.lang.Object
io.vertx.mutiny.core.shareddata.Lock
All Implemented Interfaces:
MutinyDelegate

public class Lock extends Object implements 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 using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Lock> __TYPE_ARG
  • Constructor Details

    • Lock

      public Lock(io.vertx.core.shareddata.Lock delegate)
    • Lock

      public Lock(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.shareddata.Lock getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • release

      public void release()
    • newInstance

      public static Lock newInstance(io.vertx.core.shareddata.Lock arg)