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
????4o-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$14com/groupbyinc/flux/threadpool/Scheduler$Cancellable(com/groupbyinc/flux/threadpool/SchedulerCancellable/com/groupbyinc/flux/threadpool/ThreadPool$Names)com/groupbyinc/flux/threadpool/ThreadPoolNames%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupbulkActionsIbulkSizeJcancellableFlushTask6Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable;executionIdGen(Ljava/util/concurrent/atomic/AtomicLong;bulkRequest-Lcom/groupbyinc/flux/action/bulk/BulkRequest;bulkRequestHandler4Lcom/groupbyinc/flux/action/bulk/BulkRequestHandler;	scheduler*Lcom/groupbyinc/flux/threadpool/Scheduler;onCloseLjava/lang/Runnable;closedZbuilder?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Builder;client6java/util/Objects8requireNonNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;:;
9<listener>&(Ljava/lang/Object;)Ljava/lang/Object;:@
9A"java/lang/invoke/LambdaMetafactoryCmetafactory?(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;EF
DGH'(Ljava/lang/Object;Ljava/lang/Object;)VJ!com/groupbyinc/flux/client/ClientLbulk[(Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)VNOMP	QOacceptD(Lcom/groupbyinc/flux/client/Client;)Ljava/util/function/BiConsumer;TUV
threadPool-()Lcom/groupbyinc/flux/threadpool/ThreadPool;XYMZ()V\lambda$builder$0^\
_`run()Ljava/lang/Runnable;bcd?(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fg
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;consumerm,com/groupbyinc/flux/common/settings/SettingsoEMPTY.Lcom/groupbyinc/flux/common/settings/Settings;qr	ps
initSchedulerb(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/concurrent/ScheduledThreadPoolExecutor;uvwy(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;ylambda$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$25(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V??
??H(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)Ljava/lang/Runnable;b???Ljava/util/function/BiConsumer;>;Ljava/util/function/BiConsumer;scheduledThreadPoolExecutor2Ljava/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?
??()	?23	?"#	?-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;??
?&'	?01	?this/Lcom/groupbyinc/flux/action/bulk/BulkProcessor;
backoffPolicy/Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;concurrentRequests/Lcom/groupbyinc/flux/common/unit/ByteSizeValue;
flushInterval+Lcom/groupbyinc/flux/common/unit/TimeValue;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??
??execute?\
?
??java/lang/Runnable?b\??java/lang/Throwable?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/IllegalStateExceptionbulk process already closed(Ljava/lang/String;)Vf
	\
m(Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;?
?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;? 
?!defaultPipeline2(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)Vf$
%
	%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/Scheduler$Cancellable;./0
flushRunnableisOverTheLimit3
4incrementAndGet6?
?71(Lcom/groupbyinc/flux/action/bulk/BulkRequest;J)V?9
?:executionId????????estimatedSizeInBytes??
?@flush
SECONDSE?	?F	terminateU(Ljava/util/concurrent/ScheduledThreadPoolExecutor;JLjava/util/concurrent/TimeUnit;)ZHIJ)com/groupbyinc/flux/common/unit/TimeValueLmillisN?
MOMILLISECONDSQ?	?R0java/util/concurrent/ScheduledThreadPoolExecutorT\(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;?V
UWdelayexecutorcommand
access$1002(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)Zx0
access$200^(Lcom/groupbyinc/flux/action/bulk/BulkProcessor;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;
access$300CodeLocalVariableTableLineNumberTableLocalVariableTypeTable	Signature(Ljava/util/function/BiConsumer;>;Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Listener;)Lcom/groupbyinc/flux/action/bulk/BulkProcessor$Builder;?(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"RuntimeVisibleParameterAnnotations
StackMapTable
ExceptionsBootstrapMethods
SourceFileInnerClasses!	"#$%&'()*+,-./01B23	45bj.*7?=W+??=W?Y*Y?BW?W+*?[?e?i?c.6j.>kd???	4lb?,*n?=W+??=W?t?xM?Y*+,??,???i?c ,m?,>k??e,m?d????fgf?b
Y*??*??Y????*??*??*????*??Y????*??*??Y+,-????**????*	???cf
Y??Ym?Y??Y>kY?#Y"#Y$?Y??Y./Y01	eYm?d.?????#?.?4?F?R?X?fhi	??\bm*	?˶?W?
L?նر	?c
????d?	??
??jL?!??b?J*????*??*????*????*??*??-??6*?????:*?????%0<<><c J??J?%J??d.??	???!?%?0?9?<?G?j	V?k???b:*+??c????d???b:*+??c????d??b;*+???c????d??bJ*+,??*?c ?????d
i	?bB
*?????c
??dj@\bN*????Y?
??c??dj"??b]*?*??+,?W*??c ?????d !i	??b^*+,-??c4??d(ki??!?b?*??+,-?"W*?*?cH??#?d012ki??????b?(+??Y*?&?,?	Y*?'?+N,-+-?1?c*(??(??(./21d67
ABj
\bT*?*?5??*??c??dFGHJKj?\bp"*??L*???8A*??Y????*??+ ?;?c "??*+
<%dOP
RS!T3bz6*???*????*????*??=??*???A*??????c6??dWXZ2[4]j!B\bR*?*????*??c??ddefhj
??b6*C?G?KW?c??d?
{|bU
*-+?P?S?X?c*
??
Y?
Z
[1d?
^\b?d?\]b/*???c^?d3_`b/*???c^?d3a$b/*??c^?d3l*IKRSI]a]IzzI]?]mn:	

				 !




© 2015 - 2024 Weber Informatics LLC | Privacy Policy