com.groupbyinc.flux.action.bulk.BulkProcessor.class Maven / Gradle / Ivy
???? 4o -com/groupbyinc/flux/action/bulk/BulkProcessor java/lang/Object java/io/Closeable BulkProcessor.java 3com/groupbyinc/flux/action/bulk/BulkProcessor$Flush Flush 5com/groupbyinc/flux/action/bulk/BulkProcessor$Builder Builder 6com/groupbyinc/flux/action/bulk/BulkProcessor$Listener Listener /com/groupbyinc/flux/action/bulk/BulkProcessor$1 4com/groupbyinc/flux/threadpool/Scheduler$Cancellable (com/groupbyinc/flux/threadpool/Scheduler Cancellable /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup bulkActions I bulkSize J cancellableFlushTask 6Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable; executionIdGen (Ljava/util/concurrent/atomic/AtomicLong; bulkRequest -Lcom/groupbyinc/flux/action/bulk/BulkRequest; bulkRequestHandler 4Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler; scheduler *Lcom/groupbyinc/flux/threadpool/Scheduler; onClose Ljava/lang/Runnable; closed Z builder ?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Builder; client 6 java/util/Objects 8 requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; : ;
9 < listener > &(Ljava/lang/Object;)Ljava/lang/Object; : @
9 A "java/lang/invoke/LambdaMetafactory C 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; E F
D G H '(Ljava/lang/Object;Ljava/lang/Object;)V J !com/groupbyinc/flux/client/Client L bulk [(Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V N O M P Q O accept D(Lcom/groupbyinc/flux/client/Client;)Ljava/util/function/BiConsumer; T U V
threadPool -()Lcom/groupbyinc/flux/threadpool/ThreadPool; X Y M Z ()V \ lambda$builder$0 ^ \
_ ` run ()Ljava/lang/Runnable; b c d ?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/Scheduler;Ljava/lang/Runnable;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$1;)V f g
h #Lcom/groupbyinc/flux/client/Client; 8Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener; ?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Builder; consumer m ,com/groupbyinc/flux/common/settings/Settings o EMPTY .Lcom/groupbyinc/flux/common/settings/Settings; q r p s
initScheduler b(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/concurrent/ScheduledThreadPoolExecutor; u v w y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; y lambda$builder$1 ?(Ljava/util/concurrent/ScheduledThreadPoolExecutor;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; { |
} ~ schedule ^(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)Lcom/groupbyinc/flux/threadpool/Scheduler; ? ? ? lambda$builder$2 5(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V ? ?
? ? H(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)Ljava/lang/Runnable; b ? ? ?Ljava/util/function/BiConsumer;>; Ljava/util/function/BiConsumer; scheduledThreadPoolExecutor 2Ljava/util/concurrent/ScheduledThreadPoolExecutor;#(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;IILcom/groupbyinc/flux/common/unit/ByteSizeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/threadpool/Scheduler;Ljava/lang/Runnable;)V %Lcom/groupbyinc/flux/common/Nullable; f \
? &java/util/concurrent/atomic/AtomicLong ?
? ? ( ) ? 2 3 ? " # ? -com/groupbyinc/flux/common/unit/ByteSizeValue ? getBytes ()J ? ?
? ? $ % ? +com/groupbyinc/flux/action/bulk/BulkRequest ?
? ? * + ? . / ? 2com/groupbyinc/flux/action/bulk/BulkRequestHandler ? ?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/Scheduler;I)V f ?
? ? , - ? startFlushTask ?(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/threadpool/Scheduler;)Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable; ? ?
? &