Package org.redisson.cache
Class ReferenceCachedValue<K,V>
- java.lang.Object
-
- org.redisson.cache.StdCachedValue<K,V>
-
- org.redisson.cache.ReferenceCachedValue<K,V>
-
- All Implemented Interfaces:
CachedValue<K,V>
,ExpirableValue
public class ReferenceCachedValue<K,V> extends StdCachedValue<K,V> implements CachedValue<K,V>
Created by jribble on 2/20/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReferenceCachedValue.Type
-
Constructor Summary
Constructors Constructor Description ReferenceCachedValue(K key, V value, long ttl, long maxIdleTime, ReferenceQueue<V> queue, ReferenceCachedValue.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getValue()
-
Methods inherited from class org.redisson.cache.StdCachedValue
getKey, isExpired, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.redisson.cache.CachedValue
getKey
-
Methods inherited from interface org.redisson.cache.ExpirableValue
isExpired
-
-
-
-
Constructor Detail
-
ReferenceCachedValue
public ReferenceCachedValue(K key, V value, long ttl, long maxIdleTime, ReferenceQueue<V> queue, ReferenceCachedValue.Type type)
-
-
Method Detail
-
getValue
public V getValue()
- Specified by:
getValue
in interfaceCachedValue<K,V>
- Overrides:
getValue
in classStdCachedValue<K,V>
-
-