com.groupbyinc.flux.action.bulk.BulkRequestHandler.class Maven / Gradle / Ivy
???? 4 ? 2com/groupbyinc/flux/action/bulk/BulkRequestHandler java/lang/Object BulkRequestHandler.java 4com/groupbyinc/flux/action/bulk/BulkRequestHandler$1 6com/groupbyinc/flux/action/bulk/BulkProcessor$Listener -com/groupbyinc/flux/action/bulk/BulkProcessor
Listener %java/lang/invoke/MethodHandles$Lookup
java/lang/invoke/MethodHandles Lookup logger !Lorg/apache/logging/log4j/Logger; consumer Ljava/util/function/BiConsumer; ?Ljava/util/function/BiConsumer;>; listener 8Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener; semaphore Ljava/util/concurrent/Semaphore; retry 'Lcom/groupbyinc/flux/action/bulk/Retry; concurrentRequests I $assertionsDisabled Z ?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/ThreadPool;I)V ()V ! #
$ & java/lang/AssertionError (
) $ java/util/function/BiConsumer + -com/groupbyinc/flux/action/bulk/BackoffPolicy - )com/groupbyinc/flux/threadpool/ThreadPool / getClass ()Ljava/lang/Class; 1 2
3 *com/groupbyinc/flux/common/logging/Loggers 5 getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger; 7 8
6 9 ; = ? A %com/groupbyinc/flux/action/bulk/Retry C Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException E n(Ljava/lang/Class;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V ! G
D H J java/util/concurrent/Semaphore L (I)V ! N
M O Q this 4Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;
backoffPolicy /Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; execute 1(Lcom/groupbyinc/flux/action/bulk/BulkRequest;J)V java/lang/InterruptedException [ java/lang/Exception ] "java/lang/invoke/LambdaMetafactory _ 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; a b
` c d # lambda$execute$0 g #
h i run ()Ljava/lang/Runnable; k l m
beforeBulk 1(JLcom/groupbyinc/flux/action/bulk/BulkRequest;)V o p q acquire s #
M t release v #
M w x 6(Ljava/util/concurrent/Semaphore;)Ljava/lang/Runnable; k z { #java/util/concurrent/CountDownLatch }
~ O ?(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;JLcom/groupbyinc/flux/action/bulk/BulkRequest;Ljava/util/concurrent/CountDownLatch;)V ! ?
? ,com/groupbyinc/flux/common/settings/Settings ? EMPTY .Lcom/groupbyinc/flux/common/settings/Settings; ? ? ? ? withBackoff ?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
D ? await ? #
~ ? java/lang/Runnable ? k # ? ? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? interrupt ? #
? ? ()Ljava/lang/Object; ? lambda$execute$1 (J)Ljava/lang/Object; ? ?
? ? get +(J)Lorg/apache/logging/log4j/util/Supplier; ? ? ? org/apache/logging/log4j/Logger ? info @(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? ? ? ? afterBulk F(JLcom/groupbyinc/flux/action/bulk/BulkRequest;Ljava/lang/Throwable;)V ? ? ? lambda$execute$2 ? ?
? ? ? warn ? ? ? ? java/lang/Throwable ? latch %Ljava/util/concurrent/CountDownLatch; e Ljava/lang/InterruptedException; Ljava/lang/Exception; bulkRequest -Lcom/groupbyinc/flux/action/bulk/BulkRequest; executionId J toRelease Ljava/lang/Runnable; bulkRequestSetupSuccessful
awaitClose #(JLjava/util/concurrent/TimeUnit;)Z
tryAcquire $(IJLjava/util/concurrent/TimeUnit;)Z ? ?
M ? v N
M ? timeout unit Ljava/util/concurrent/TimeUnit; 5org/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. ?
access$000 n(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener; x0
access$100 V(Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;)Ljava/util/concurrent/Semaphore; java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable?(Ljava/util/function/BiConsumer;>;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/ThreadPool;I)V
Exceptions BootstrapMethods
SourceFile InnerClasses 1 ? ! " ? G Y*? %? '? ? ? )Y? *?**? 4? :? <*+? >*-? @*? B*? DYF,? I? K*? MY? ? ? P? R? ? > Y S T Y Y U V Y Y W X Y ? Y ? &