jetbrains.buildServer.util
Class UptodateValue<T>

java.lang.Object
  extended by jetbrains.buildServer.util.UptodateValue<T>

public class UptodateValue<T>
extends java.lang.Object

This class operates as a time-based cache for a calculatable value.

Author:
Pavel.Sher Date: 23.09.2008

Nested Class Summary
static interface UptodateValue.ValueProvider<T>
           
 
Constructor Summary
UptodateValue(UptodateValue.ValueProvider<T> provider, long timeToLiveMillis)
           
 
Method Summary
 T getValue()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UptodateValue

public UptodateValue(@NotNull
                     UptodateValue.ValueProvider<T> provider,
                     long timeToLiveMillis)
Method Detail

getValue

public T getValue()

reset

public void reset()