Class TimedCacheEntry<VALUETYPE>

java.lang.Object
org.csstudio.java.thread.TimedCacheEntry<VALUETYPE>

public class TimedCacheEntry<VALUETYPE> extends Object
Entry in the TimedCache
  • Constructor Details

    • TimedCacheEntry

      public TimedCacheEntry(VALUETYPE value, long valid_seconds)
      Initialize
      Parameters:
      value - Value of this entry
      valid_seconds - Duration in seconds, how long this entry is valid
  • Method Details

    • getValue

      public VALUETYPE getValue()
      Returns:
      Value of enty
    • getCacheHeader

      public CacheHeader getCacheHeader()
      Returns:
      Chache header info: Time stamp, expiration time
    • isStillValid

      public boolean isStillValid()
      Returns:
      true if entry is still valid