public class

CachedValue

extends Object
java.lang.Object
   ↳ com.urbanairship.util.CachedValue<T>

Class Overview

Caches a value in memory with an expiration.

Summary

Public Constructors
CachedValue()
CachedValue(Clock clock)
Public Methods
T get()
void invalidate()
void set(T value, long expiresMs)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CachedValue ()

public CachedValue (Clock clock)

Public Methods

public T get ()

public void invalidate ()

public void set (T value, long expiresMs)