Class LeaseProvider

java.lang.Object
org.apache.pekko.coordination.lease.scaladsl.LeaseProvider
All Implemented Interfaces:
Extension

public final class LeaseProvider extends Object implements Extension
  • Constructor Details

  • Method Details

    • get

      public static LeaseProvider get(ActorSystem system)
    • get

      public static LeaseProvider get(ClassicActorSystemProvider system)
    • lookup

      public static LeaseProvider$ lookup()
    • createExtension

      public static LeaseProvider createExtension(ExtendedActorSystem system)
    • apply

      public static T apply(ActorSystem system)
    • apply

      public static T apply(ClassicActorSystemProvider system)
    • hashCode

      public static final int hashCode()
    • equals

      public static final boolean equals(Object other)
    • getLease

      public Lease getLease(String leaseName, String configPath, String ownerName)
      The configuration define at configPath must have a property lease-class that defines the fully qualified class name of the Lease implementation. The class must implement Lease and have constructor with pekko.coordination.lease.LeaseSettings parameter and optionally ActorSystem parameter.

      Parameters:
      leaseName - the name of the lease resource
      configPath - the path of configuration for the lease
      ownerName - the owner that will acquire the lease, e.g. hostname and port of the ActorSystem