Class LeaseProvider

  • All Implemented Interfaces:
    Extension

    public class LeaseProvider
    extends java.lang.Object
    implements Extension
    • Method Detail

      • apply

        public static T apply​(ActorSystem system)
      • hashCode

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)
      • getLease

        public Lease getLease​(java.lang.String leaseName,
                              java.lang.String configPath,
                              java.lang.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 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