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

com.groupbyinc.flux.action.bulk.BulkProcessor.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4$-com/groupbyinc/flux/action/bulk/BulkProcessorjava/lang/Objectjava/io/CloseableBulkProcessor.java3com/groupbyinc/flux/action/bulk/BulkProcessor$FlushFlush5com/groupbyinc/flux/action/bulk/BulkProcessor$BuilderBuilder6com/groupbyinc/flux/action/bulk/BulkProcessor$ListenerListener/com/groupbyinc/flux/action/bulk/BulkProcessor$15com/groupbyinc/flux/threadpool/ThreadPool$Cancellable)com/groupbyinc/flux/threadpool/ThreadPoolCancellable/com/groupbyinc/flux/threadpool/ThreadPool$NamesNames%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupbulkActionsIbulkSizeJcancellableFlushTask7Lcom/groupbyinc/flux/threadpool/ThreadPool$Cancellable;executionIdGen(Ljava/util/concurrent/atomic/AtomicLong;bulkRequest-Lcom/groupbyinc/flux/action/bulk/BulkRequest;bulkRequestHandler4Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;closedZbuilder?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Builder;client0java/util/Objects2requireNonNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;45
36listener8getClass()Ljava/lang/Class;:;
<"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
?BC'(Ljava/lang/Object;Ljava/lang/Object;)VE!com/groupbyinc/flux/client/ClientGbulk[(Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)VIJHK	LJacceptD(Lcom/groupbyinc/flux/client/Client;)Ljava/util/function/BiConsumer;OPQ
threadPool-()Lcom/groupbyinc/flux/threadpool/ThreadPool;STHU?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/ThreadPool;)VWX
Y#Lcom/groupbyinc/flux/client/Client;8Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;(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/ThreadPool;)V%Lcom/groupbyinc/flux/common/Nullable;()VW_
`&java/util/concurrent/atomic/AtomicLongb
c`&'	e,-	g !	i-com/groupbyinc/flux/common/unit/ByteSizeValuekgetBytes()Jmn
lo"#	q+com/groupbyinc/flux/action/bulk/BulkRequests
t`()	v2com/groupbyinc/flux/action/bulk/BulkRequestHandlerx?(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;Lcom/groupbyinc/flux/threadpool/ThreadPool;I)VWz
y{*+	}startFlushTask?(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/threadpool/ThreadPool;)Lcom/groupbyinc/flux/threadpool/ThreadPool$Cancellable;?
?$%	?this/Lcom/groupbyinc/flux/action/bulk/BulkProcessor;consumer?Ljava/util/function/BiConsumer;>;Ljava/util/function/BiConsumer;
backoffPolicy/Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;concurrentRequests/Lcom/groupbyinc/flux/common/unit/ByteSizeValue;
flushInterval+Lcom/groupbyinc/flux/common/unit/TimeValue;+Lcom/groupbyinc/flux/threadpool/ThreadPool;closejava/lang/InterruptedException?java/util/concurrent/TimeUnit?NANOSECONDSLjava/util/concurrent/TimeUnit;??	??
awaitClose#(JLjava/util/concurrent/TimeUnit;)Z??
?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??	interrupt?_
??exc Ljava/lang/InterruptedException;cancel?_?numberOfActions()I??
t?execute?_
?
y?timeoutunitadd`(Lcom/groupbyinc/flux/action/index/IndexRequest;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;](Lcom/groupbyinc/flux/action/DocWriteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;??
?request/Lcom/groupbyinc/flux/action/index/IndexRequest;b(Lcom/groupbyinc/flux/action/delete/DeleteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;1Lcom/groupbyinc/flux/action/delete/DeleteRequest;o(Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;??
?,Lcom/groupbyinc/flux/action/DocWriteRequest;internalAddA(Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Object;)V??
?payloadLjava/lang/Object;isOpen()Z
ensureOpenjava/lang/IllegalStateException?bulk process already closed?(Ljava/lang/String;)VW?
???_
?m(Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;??
t?executeIfNeeded?_
??(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;java/lang/Exception??(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor;??
?data1Lcom/groupbyinc/flux/common/bytes/BytesReference;defaultIndexLjava/lang/String;defaultTypexContentType2Lcom/groupbyinc/flux/common/xcontent/XContentType;>(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext;Ljava/lang/String;Ljava/lang/Object;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;??
t?defaultPipeline2(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)VW?
?getThreadContext<()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;??
?
	?8com/groupbyinc/flux/common/util/concurrent/ThreadContext?preserveContext*(Ljava/lang/Runnable;)Ljava/lang/Runnable;??
??generic?scheduleWithFixedDelay?(Ljava/lang/Runnable;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/threadpool/ThreadPool$Cancellable;??
?
flushRunnableLjava/lang/Runnable;isOverTheLimit?
incrementAndGetn
c1(Lcom/groupbyinc/flux/action/bulk/BulkRequest;J)V?
y	executionId????????estimatedSizeInBytesn
tflush
access$0002(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)Zx0
access$100^(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;
access$200CodeLocalVariableTableLineNumberTableLocalVariableTypeTable	Signature?(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/ThreadPool;)V"RuntimeVisibleParameterAnnotations
StackMapTable
ExceptionsBootstrapMethods
SourceFileInnerClasses! !"#$%&'()*+B,-	./d(*1?7W+9?7W?Y*Y?=W?R+*?V?Z?(0[(8\???W]?	M*?a*?cY?d?f*?h*?j*?p?r*?tY?u?w*?yY+,-?|?~**?????\	M??M??M??M8\M?!M !M"?M??MS?M??&	?????#?.?@?L?^?_m*	????W?
L?????	?
?????	??
??L?!???/*?h??*?h*????*?w???*??*?~-??? /??/?#/????	???!?%?	 ???:*+??????????:*+??????????;*+??????????J*+,??*? ??????
??	^??B
*?h???
??@?_M*?h?
??YϷҿ???
"??]*??*?w+,??W*?ڱ ??????
	^??^*+,-??4?????????? ?^^!???*?w+,-??W*??*?H?????????????? ! ?^^^^??&+??Y*??,??	Y*???N,-+????*&??&??&S?	%&
12
?_T*??*???*?????678:;?_p"*?wL*?f?A*?tY?u?w*?~+ ?
? "??()
#?@
BC!D?z6*?j?*?w??*?j??*?r??*?w?*?r????6??GHJ2K4M!_R*??*?w???*?????TUVX/*?h??0/*?w??0?/*????0!DFMN"#:	

				




© 2015 - 2024 Weber Informatics LLC | Privacy Policy