Interface Expiration

All Known Subinterfaces:
ExpirationConfiguration<T>, ExpirationMetaData

public interface Expiration
Describes the expiration criteria for an object.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    The duration of time, after which an idle object should expire.
    default boolean
    Indicates whether the associated timeout represents and immortal object, i.e.
  • Method Details

    • getTimeout

      Duration getTimeout()
      The duration of time, after which an idle object should expire.
      Returns:
      the object timeout
    • isImmortal

      default boolean isImmortal()
      Indicates whether the associated timeout represents and immortal object, i.e. does not expire
      Returns:
      true, if this object is immortal, false otherwise