Class LicenseExpiryWarningEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class LicenseExpiryWarningEvent
    extends AdapterLifecycleEvent

    AdapterLifecycleEvent indicating that this Adapter's license is about to expire.

    See Also:
    Serialized Form

    In the adapter configuration file this class is aliased as license-expiry-warning-event which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • LicenseExpiryWarningEvent

        public LicenseExpiryWarningEvent()

        Creates a new instance.

    • Method Detail

      • setLicenseExpiry

        public void setLicenseExpiry​(java.lang.String d)
                              throws java.text.ParseException
        Set the date when this license expires.
        Parameters:
        d - the date.
        Throws:
        java.text.ParseException - if the date string could not be parsed.
      • getLicenseExpiry

        public java.lang.String getLicenseExpiry()
        Get the date of the license expiry.
        Returns:
        the date.
      • when

        public java.util.Date when()
        Get the expiry date as an actual Date object.
        Returns:
        the expiry date.
      • setExpiryDate

        public void setExpiryDate​(java.util.Date d)
        Set the expiry date using an actual Date object.
        Parameters:
        d - the expiry date
      • getExpiryDate

        public java.util.Date getExpiryDate()