Class ExpiryHandlerImpl

java.lang.Object
com.atlassian.bamboo.utils.expirables.ExpiryHandlerImpl
All Implemented Interfaces:
ExpiryHandler

public final class ExpiryHandlerImpl extends Object implements ExpiryHandler
  • Constructor Details

  • Method Details

    • onCreate

      public void onCreate()
      Description copied from interface: ExpiryHandler
      Called when an expirable object is created/recreated.
      Specified by:
      onCreate in interface ExpiryHandler
    • onUse

      public void onUse()
      Description copied from interface: ExpiryHandler
      Called when an expirable object is used.
      Specified by:
      onUse in interface ExpiryHandler
    • expiryTick

      public long expiryTick()
      Description copied from interface: ExpiryHandler
      Called periodically by ExpiryTicker. Should be used to expire the object if it's too old.
      Specified by:
      expiryTick in interface ExpiryHandler
      Returns:
      -1 if the object has been expired. 0 if it has not been expired. Optionally, can return the nearest timestamp when the object may be expired.