Class LeaseSpec.Jsii$Proxy

  • All Implemented Interfaces:
    LeaseSpec, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    LeaseSpec

    @Stability(Stable)
    @Internal
    public static final class LeaseSpec.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements LeaseSpec
    An implementation for LeaseSpec
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
      • Jsii$Proxy

        protected Jsii$Proxy​(LeaseSpec.Builder builder)
        Constructor that initializes the object based on literal property values passed by the LeaseSpec.Builder.
    • Method Detail

      • getAcquireTime

        public final Instant getAcquireTime()
        Description copied from interface: LeaseSpec
        acquireTime is a time when the current lease was acquired.
        Specified by:
        getAcquireTime in interface LeaseSpec
      • getHolderIdentity

        public final String getHolderIdentity()
        Description copied from interface: LeaseSpec
        holderIdentity contains the identity of the holder of a current lease.
        Specified by:
        getHolderIdentity in interface LeaseSpec
      • getLeaseDurationSeconds

        public final Number getLeaseDurationSeconds()
        Description copied from interface: LeaseSpec
        leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.

        This is measure against time of last observed RenewTime.

        Specified by:
        getLeaseDurationSeconds in interface LeaseSpec
      • getLeaseTransitions

        public final Number getLeaseTransitions()
        Description copied from interface: LeaseSpec
        leaseTransitions is the number of transitions of a lease between holders.
        Specified by:
        getLeaseTransitions in interface LeaseSpec
      • getRenewTime

        public final Instant getRenewTime()
        Description copied from interface: LeaseSpec
        renewTime is a time when the current holder of a lease has last updated the lease.
        Specified by:
        getRenewTime in interface LeaseSpec
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object