Class TimedValueHolder

java.lang.Object
org.broadleafcommerce.common.extensibility.cache.TimedValueHolder
All Implemented Interfaces:
Serializable

public class TimedValueHolder extends Object implements Serializable
JCache does not provide direct APIs for Per-Mapping expiry. This means that, by default, JCache does not allow you to specify different expiry times per entry, effectively overriding the default expiry. Instances of this class provide a time to live (TTL) along with a value. This is just a convenience wrapper. For caches that have or allow per-entry TTL settings, this provides a convenient way to pass those details in.
Author:
Kelly Tisdell
See Also:
  • Constructor Details

    • TimedValueHolder

      public TimedValueHolder(Object value, Integer ttlSeconds)
  • Method Details

    • getValue

      public Object getValue()
    • getTimeToLiveSeconds

      public Integer getTimeToLiveSeconds()