com.groupbyinc.flux.action.bulk.BulkRequestHandler$AsyncBulkRequestHandler.class Maven / Gradle / Ivy
???? 4 ? Jcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler 2com/groupbyinc/flux/action/bulk/BulkRequestHandler BulkRequestHandler.java AsyncBulkRequestHandler Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler$1 6com/groupbyinc/flux/action/bulk/BulkProcessor$Listener -com/groupbyinc/flux/action/bulk/BulkProcessor Listener 4com/groupbyinc/flux/action/bulk/BulkRequestHandler$1 %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
backoffPolicy /Lcom/groupbyinc/flux/action/bulk/BackoffPolicy; listener 8Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener; semaphore Ljava/util/concurrent/Semaphore; concurrentRequests I $assertionsDisabled Z ?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;I)V &(Lcom/groupbyinc/flux/client/Client;)V !
" $ & java/lang/AssertionError ( ()V *
) + !com/groupbyinc/flux/client/Client - -com/groupbyinc/flux/action/bulk/BackoffPolicy / 1 3 java/util/concurrent/Semaphore 5 (I)V 7
6 8 : this LLcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler; client #Lcom/groupbyinc/flux/client/Client; execute 1(Lcom/groupbyinc/flux/action/bulk/BulkRequest;J)V java/lang/InterruptedException B java/lang/Exception D
beforeBulk 1(JLcom/groupbyinc/flux/action/bulk/BulkRequest;)V F G
H acquire J *
6 K Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException M %com/groupbyinc/flux/action/bulk/Retry O on :(Ljava/lang/Class;)Lcom/groupbyinc/flux/action/bulk/Retry; Q R
P S policy X(Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;)Lcom/groupbyinc/flux/action/bulk/Retry; U V
P W > ? Y }(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler;JLcom/groupbyinc/flux/action/bulk/BulkRequest;)V [
\ withAsyncBackoff ~(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ^ _
P ` release b *
6 c +com/groupbyinc/flux/action/bulk/BulkRequest e java/lang/Thread g
currentThread ()Ljava/lang/Thread; i j
h k interrupt m *
h n logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; p q r "java/lang/invoke/LambdaMetafactory t metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; v w
u x y ()Ljava/lang/Object; { lambda$execute$0 (J)Ljava/lang/Object; } ~
? get B(J)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; ? ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? info W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? ? ? ? afterBulk F(JLcom/groupbyinc/flux/action/bulk/BulkRequest;Ljava/lang/Throwable;)V ? ?
? lambda$execute$1 ? ~
? ? ? warn ? ? ? ? java/lang/Throwable ? e Ljava/lang/InterruptedException; Ljava/lang/Exception; bulkRequest -Lcom/groupbyinc/flux/action/bulk/BulkRequest; executionId J bulkRequestSetupSuccessful acquired
awaitClose #(JLjava/util/concurrent/TimeUnit;)Z
tryAcquire $(IJLjava/util/concurrent/TimeUnit;)Z ? ?
6 ? b 7
6 ? timeout unit Ljava/util/concurrent/TimeUnit; Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessage ? "Failed to execute bulk request {}. ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? '(Ljava/lang/String;Ljava/lang/Object;)V ?
? ? #Bulk request {} has been cancelled. ? ?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;ILcom/groupbyinc/flux/action/bulk/BulkRequestHandler$1;)V
? x0 x1 x2 x3 x4 6Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler$1;
access$100 ?(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;
access$200 n(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler$AsyncBulkRequestHandler;)Ljava/util/concurrent/Semaphore; java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions BootstrapMethods
SourceFile InnerClasses ? ? 6*+? #*,? %? '? ? ? )Y? ,?*-? 2*? 4*? 6Y? 9? ;? ? 4 6 <