com.groupbyinc.flux.common.util.SingleObjectCache.class Maven / Gradle / Ivy
???? 4 a 1com/groupbyinc/flux/common/util/SingleObjectCache (Ljava/lang/Object; java/lang/Object SingleObjectCache.java cached Ljava/lang/Object; TT; refreshLock !Ljava/util/concurrent/locks/Lock; refreshInterval +Lcom/groupbyinc/flux/common/unit/TimeValue; lastRefreshTimestamp J $assertionsDisabled Z @(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/Object;)V ()V
(java/util/concurrent/locks/ReentrantLock
"java/lang/IllegalArgumentException initialValue must not be null (Ljava/lang/String;)V "
# )com/groupbyinc/flux/common/unit/TimeValue %
' ) this 8Lcom/groupbyinc/flux/common/util/SingleObjectCache; 3Lcom/groupbyinc/flux/common/util/SingleObjectCache; initialValue getOrRefresh ()Ljava/lang/Object; needsRefresh ()Z 1 2
3 java/util/concurrent/locks/Lock 5 tryLock 7 2 6 8 refresh : 0
; = java/lang/AssertionError ?
@ java/lang/System B currentTimeMillis ()J D E
C F unlock H 6 I java/lang/Throwable K getNoRefresh millis N E
&