
com.groupbyinc.flux.common.apache.lucene.search.ControlledRealTimeReopenThread.class Maven / Gradle / Ivy
???? 3 ? Ncom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread ;Ljava/lang/Thread;Ljava/io/Closeable; java/lang/Thread java/io/Closeable #ControlledRealTimeReopenThread.java Pcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread$1 \com/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread$HandleRefresh
HandleRefresh Pcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager$RefreshListener @com/groupbyinc/flux/common/apache/lucene/search/ReferenceManager RefreshListener manager BLcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager; GLcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager; targetMaxStaleNS J targetMinStaleNS writer DLcom/groupbyinc/flux/common/apache/lucene/index/TrackingIndexWriter; finish Z
waitingGen searchingGen refreshStartGen
reopenLock *Ljava/util/concurrent/locks/ReentrantLock;
reopenCond &Ljava/util/concurrent/locks/Condition; ?(Lcom/groupbyinc/flux/common/apache/lucene/index/TrackingIndexWriter;Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager;DD)V ()V $ &
' (java/util/concurrent/locks/ReentrantLock )
* ' ! , newCondition (()Ljava/util/concurrent/locks/Condition; . /
* 0 " # 2 "java/lang/IllegalArgumentException 4 java/lang/StringBuilder 6
7 ' targetMaxScaleSec (= 9 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ; <
7 = (D)Ljava/lang/StringBuilder; ; ?
7 @ ) < targetMinStaleSec (= B ) D toString ()Ljava/lang/String; F G
7 H (Ljava/lang/String;)V $ J
5 K Bcom/groupbyinc/flux/common/apache/lucene/index/TrackingIndexWriter M O QA??e U W ?(Lcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread;Lcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread$1;)V $ Y
Z addListener U(Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager$RefreshListener;)V \ ]
^ this ULcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread; PLcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread; targetMaxStaleSec D targetMinStaleSec refreshDone g i java/lang/Object k notifyAll m &
l n close java/lang/InterruptedException q s lock u &
* v $java/util/concurrent/locks/Condition x signal z & y { unlock } &
* ~ java/lang/Throwable ? join ? &
? Hcom/groupbyinc/flux/common/apache/lucene/util/ThreadInterruptedException ? #(Ljava/lang/InterruptedException;)V $ ?
? ???????? ie Ljava/lang/InterruptedException; waitForGeneration (J)V (JI)Z ? ?
? targetGen
getGeneration ()J ? ?
N ?
targetGen= ? (J)Ljava/lang/StringBuilder; ; ?
7 ? B was never returned by the ReferenceManager instance (current gen= ? ? java/lang/Math ? max (JJ)J ? ?
? ? java/lang/System ? nanoTime ? ?
? ? B@ wait ? &
l ? ? ?
l ? msLeft startMS maxMS I curGen run java/io/IOException ?
awaitNanos (J)J ? ? y ?
currentThread ()Ljava/lang/Thread; ? ?
? interrupt ? &
? getAndIncrementGeneration ? ?
N ? maybeRefreshBlocking ? &
? java/lang/RuntimeException ? (Ljava/lang/Throwable;)V $ ?
? ?
hasWaiting nextReopenStartNS sleepNS ioe Ljava/io/IOException; lastReopenStartNS getSearchingGen
access$100 S(Lcom/groupbyinc/flux/common/apache/lucene/search/ControlledRealTimeReopenThread;)V f &
? x0 Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/common/apache/lucene/index/TrackingIndexWriter;Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager;DD)V
Exceptions
SourceFile InnerClasses !
? B B B ! " # $ % ? ( x*? (*? *Y? +? -**? -? 1? 3)?? -? 5Y? 7Y? 8:? >)? AC? >? AE? >? I? L?*+? P*,? R* S)k?? V* Sk?? X,? Y*? [? _? ? 4 x ` b x x x c d x e d ? x ` a x ? . H 5 6 I ! J K L P M U N _ O j P w Q ? ? K N ? ? " f &