All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.cluster.service.TaskBatcher.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?/com/groupbyinc/flux/cluster/service/TaskBatcherjava/lang/ObjectTaskBatcher.java;com/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTaskBatchedTaskjava/util/Map$Entry	
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookuplogger!Lorg/apache/logging/log4j/Logger;threadExecutorLLcom/groupbyinc/flux/common/util/concurrent/PrioritizedEsThreadPoolExecutor;tasksPerBatchingKeyLjava/util/Map;{Ljava/util/Map;>;$assertionsDisabledZp(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/PrioritizedEsThreadPoolExecutor;)V()V
java/util/HashMap!
"	$	&	(this1Lcom/groupbyinc/flux/cluster/service/TaskBatcher;submitTasks>(Ljava/util/List;Lcom/groupbyinc/flux/common/unit/TimeValue;)VGcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException.%Lcom/groupbyinc/flux/common/Nullable;java/util/List1isEmpty()Z3425get(I)Ljava/lang/Object;7829	;stream()Ljava/util/stream/Stream;=>2?"java/lang/invoke/LambdaMetafactoryAmetafactory?(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;CD
BEF(Ljava/lang/Object;)ZHlambda$submitTasks$0}(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)ZJK
LM@(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)ZOtest](Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)Ljava/util/function/Predicate;QRSjava/util/stream/StreamUallMatch!(Ljava/util/function/Predicate;)ZWXVYjava/lang/AssertionError[java/lang/StringBuilder]
^?tasks submitted in a batch should share the same batching key: `append-(Ljava/lang/String;)Ljava/lang/StringBuilder;bc
^d-(Ljava/lang/Object;)Ljava/lang/StringBuilder;bf
^gtoString()Ljava/lang/String;ij
^k(Ljava/lang/Object;)Vm
\n&(Ljava/lang/Object;)Ljava/lang/Object;pgetTask()Ljava/lang/Object;rs
tuQ(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)Ljava/lang/Object;wapply()Ljava/util/function/Function;yz{java/util/function/Function}identityz~?8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?lambda$submitTasks$1?(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;??
???%()Ljava/util/function/BinaryOperator;y??sjava/util/IdentityHashMap?
??()Ljava/util/IdentityHashMap;?()Ljava/util/function/Supplier;7??java/util/stream/Collectors?toMap?(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/BinaryOperator;Ljava/util/function/Supplier;)Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;??V?batchingKeyLjava/lang/Object;??	?lambda$submitTasks$2=(Ljava/util/List;Ljava/lang/Object;)Ljava/util/LinkedHashSet;??
??-(Ljava/lang/Object;)Ljava/util/LinkedHashSet;?/(Ljava/util/List;)Ljava/util/function/Function;y??computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;???java/util/LinkedHashSet?iterator()Ljava/util/Iterator;??
??)com/groupbyinc/flux/common/unit/TimeValue?java/util/Iterator?hasNext?4??next?s??7p?java/lang/IllegalStateException?task [?java/util/Collections?
singletonList$(Ljava/lang/Object;)Ljava/util/List;??
??
describeTasks$(Ljava/util/List;)Ljava/lang/String;??
?] with source [?sourceLjava/lang/String;??	?] is already queued?(Ljava/lang/String;)V?
??addAll(Ljava/util/Collection;)Z??
??java/lang/Throwable?lambda$submitTasks$3?-
??run?(Lcom/groupbyinc/flux/cluster/service/TaskBatcher;Ljava/util/List;Lcom/groupbyinc/flux/common/unit/TimeValue;)Ljava/lang/Runnable;???Jcom/groupbyinc/flux/common/util/concurrent/PrioritizedEsThreadPoolExecutor?executeV(Ljava/lang/Runnable;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/Runnable;)V??
??(Ljava/lang/Runnable;)V??
??
duplicateTask=Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;existing
existingTasksXLjava/util/LinkedHashSet;Ljava/util/LinkedHashSet;tasksPLjava/util/List<+Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;>;Ljava/util/List;timeout+Lcom/groupbyinc/flux/common/unit/TimeValue;	firstTask
tasksIdentity`Ljava/util/Map;onTimeoutInternaljava/util/ArrayList
2?	processed+Ljava/util/concurrent/atomic/AtomicBoolean;	
	)java/util/concurrent/atomic/AtomicBoolean
	getAndSet(Z)Z
task [{}] timed out after [{}]org/apache/logging/log4j/Loggerdebug9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VaddH

5
9lambda$onTimeoutInternal$4R(Ljava/lang/Object;Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)Z !
"#2(Ljava/lang/Object;)Ljava/util/function/Predicate;Q%&	removeAll(?
?)
?5remove,p-	onTimeout/-
0tasktoRemoveTLjava/util/ArrayList;Ljava/util/ArrayList;runIfNotProcessed@(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)V74
8will process {}:trace'(Ljava/lang/String;Ljava/lang/Object;)V<=>2lambda$runIfNotProcessed$5$(Ljava/lang/String;)Ljava/util/List;AB
CDB{skipping {}, already processedHentrySet()Ljava/util/Set;JKL
java/util/SetNO?lambda$runIfNotProcessed$6f(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;Ljava/util/Map$Entry;)Ljava/lang/String;QR
ST)(Ljava/util/Map$Entry;)Ljava/lang/String;V\(Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;)Ljava/util/function/Function;yXYmap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;[\V]lambda$runIfNotProcessed$78(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;_`
ab`	?reduce9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;fgVhjjava/util/OptionallorElsenp
mojava/lang/Stringq7(Ljava/lang/Object;Ljava/util/List;Ljava/lang/String;)V?s
tpendingtasksSummary	toExecuteOLjava/util/List;processTasksBySourcerLjava/util/Map;>;
updateTask, }s1s2getValue?s
?
r5getKey?s
?[?]?entryLjava/util/Map$Entry;st-
?size()I??2?(I)V?
??kcannot add duplicate task: ?abjava/lang/Class?desiredAssertionStatus?4
??	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable
Exceptions~(Ljava/util/List<+Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;>;Lcom/groupbyinc/flux/common/unit/TimeValue;)V"RuntimeVisibleParameterAnnotationsw(Ljava/lang/Object;Ljava/util/List<+Lcom/groupbyinc/flux/cluster/service/TaskBatcher$BatchedTask;>;Ljava/lang/String;)VBootstrapMethods
SourceFileInnerClasses!??h*? *?"Y?#?%*+?'*,?)?? *+?31456,-??1+?6??+?:?N??s??
_`?M?^Y?_*?e~?e+?e?l???????
QR??H*+???2??M,???+???r?)?^Y?_+???r?e??e,?e??e?l?? H|?H??:???
????!rer
AB?2?Y???????
 !?M+??*?????????f?@?-?E*+,???? *+????U?	0
???B??Y*???????????H
???P??Y?^Y?_??e*?h?l?ݿ??????C
JK?P+??*??????????=?@??4?????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy