Interface Activatable<Status extends Enum<?>>

All Known Subinterfaces:
Delegation, Token

public interface Activatable<Status extends Enum<?>>
An object which may be active.

It has a state and expiry date, both of which are used to determine whether it is active or not.

  • Method Details

    • getEnumActiveStatus

      Status getEnumActiveStatus()
      Returns:
      the active status of the Status enum.
    • getStatus

      Status getStatus()
      Returns:
      the current status of this entity.
    • getExpires

      long getExpires()
      Returns:
      expiry date (as number of seconds from 1970-01-01T00:00:00)
    • isActive

      default boolean isActive()
      Returns:
      true if this object is active. Being active depends on both the status and "expiry date" of this object.