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

com.groupbyinc.flux.index.shard.IndexShardOperationPermits.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?:com/groupbyinc/flux/index/shard/IndexShardOperationPermitsjava/lang/Objectjava/io/CloseableIndexShardOperationPermits.java\com/groupbyinc/flux/index/shard/IndexShardOperationPermits$PermitAwareThreadedActionListener!PermitAwareThreadedActionListener;>;closedZdelayed$assertionsDisabled?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V()V.0
1java/util/concurrent/Semaphore3(IZ)V.5
46%&	8java/util/ArrayList:
;1'(	=	?	A !	Cthis;,Lcom/groupbyinc/flux/common/CheckedRunnable;asyncBlockOperationsl(JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/CheckedRunnable;Ljava/util/function/Consumer;)Vgenerickexecutor:(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;mn
o?(Lcom/groupbyinc/flux/index/shard/IndexShardOperationPermits;Ljava/util/function/Consumer;JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/CheckedRunnable;)V.q
r$java/util/concurrent/ExecutorServicetexecute(Ljava/lang/Runnable;)Vvwux	onFailure4Ljava/util/function/Consumer;Ljava/util/function/Consumer;,+	}java/lang/IllegalStateExceptionoperations are already delayed?(Ljava/lang/String;)V.?
??-+	?java/util/List?isEmpty()Z????java/lang/AssertionError?
?1com/groupbyinc/flux/Assertions?ENABLED?+	??
tryAcquire$(IJLjava/util/concurrent/TimeUnit;)Z??
4?availablePermits()I??
4?*com/groupbyinc/flux/common/CheckedRunnable?run?0??release(I)V??
4?!timeout while blocking operations?
O?(Ljava/util/Collection;)V.?
;?clear?0??"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;??
???0!lambda$releaseDelayedOperations$0(Ljava/util/List;)V??
??b(Lcom/groupbyinc/flux/index/shard/IndexShardOperationPermits;Ljava/util/List;)Ljava/lang/Runnable;???
queuedActionsacquireA(Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/String;Z)V)com/groupbyinc/flux/action/ActionListener?(Ljava/lang/Exception;)Vz???getThreadContext<()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;??
?newRestorableContext (Z)Ljava/util/function/Supplier;??
?Bcom/groupbyinc/flux/action/support/ContextPreservingActionListener?K(Ljava/util/function/Supplier;Lcom/groupbyinc/flux/action/ActionListener;)V.?
???(Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;ZLcom/groupbyinc/flux/index/shard/IndexShardOperationPermits$1;)V.?
	?add(Ljava/lang/Object;)Z????java/util/function/Supplier?/()Lcom/groupbyinc/flux/common/lease/Releasable;??
?java/lang/String?+com/groupbyinc/flux/common/lease/Releasable?
onResponse(Ljava/lang/Object;)V????contextSuppliergLjava/util/function/Supplier;Ljava/util/function/Supplier;
releasable-Lcom/groupbyinc/flux/common/lease/Releasable;e Ljava/lang/InterruptedException;
onAcquiredZLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;executorOnDelayLjava/lang/String;forceExecutionjava/lang/Thread?	holdsLock??
??java/util/concurrent/TimeUnit?SECONDS?e	??)java/util/concurrent/atomic/AtomicBoolean
1lambda$acquire$1.(Ljava/util/concurrent/atomic/AtomicBoolean;)V
?(Lcom/groupbyinc/flux/index/shard/IndexShardOperationPermits;Ljava/util/concurrent/atomic/AtomicBoolean;)Lcom/groupbyinc/flux/common/lease/Releasable;G	6failed to obtain permit but operations are not delayed+Ljava/util/concurrent/atomic/AtomicBoolean;getActiveOperationsCount
compareAndSet(ZZ)Z
iterator()Ljava/util/Iterator;?java/util/IteratorhasNext?next()Ljava/lang/Object;??
 queuedAction
access$000?(Lcom/groupbyinc/flux/index/shard/IndexShardOperationPermits;JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/CheckedRunnable;)Vx0x1x2x3
access$100?(Lcom/groupbyinc/flux/index/shard/IndexShardOperationPermits;)Vjava/lang/Class,desiredAssertionStatus.?
-/
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable
Exceptions?(JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/CheckedRunnable;)V^Ljava/lang/InterruptedException;^Ljava/util/concurrent/TimeoutException;^TE;?(JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/CheckedRunnable;Ljava/util/function/Consumer;)Vp(Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/String;Z)VBootstrapMethods
SourceFileInnerClasses0	 !"#1$%&'(2)B*+,+-+./3?-*?2*?4Y$?7?9*?;Y?*+?@*,?B*-?D?4*-EF--- !5D89E"F'G,HG034*?I?4EF5
LMJK3?0*?I??SY*?@?V?*?Y*-?\*?_?:*?_??&&(&4*0EF0bc0de0fh60fg5"_`bdf#g&f/h7Ra8MOQ29ij3?	!*?Y*?Dl?p?Y*-?s?y?44!EF!bc!de!fh!z|6!fg!z{5xy ?2:W03??*YL?*?~?
??Y???????*?>?????Y???*?~+çM+?,??699<94?EF5????/?4?>?7?Ia?ZK3F????+*Y:²??*?~???Y???ç:??*?9$-???????*?9?????Y?????*?9$???:*?9$????
?OY?????#&&+&T[ggig4*?EF?bc?de?fh6?fg52??? ?.?<?T?[?d?g?x???7? Ea?%Ra
	8MOQ29]03\*YL²??*?~???Y????;Y*?>??M*?>??*?~+çN+?-?,???*?Dl?p*,???y?588;84 %?(\EF=?(6%?)=?)5&	???%?.?3?=?F?[?7?^a????3?	?*?I?+?SY*?@?V???*Y:?*?~?Q*?D????:,?(*?>?	Y*?D,??Y+???׹?W?*?>??Y+?Թ?Wñ*??:ç:???:+???+???rs|?r?Ms??M4\	2A??y??????	???EF????????+?	??62A?????5J?????%?2?6?[?o?s?y?????????????7F?A??Ka???????M?
?2;??3?????*?????Y???*?9	??????Y?L*+?
???Y???4,*
?EF5??$?,?4?78M?3_*?9??<??$d?4EF?#5
7?3W+??*?9???4EF*
5?	??7??3?%+?M,??,???N*-?!???4 "?%EF%?(6"?5??!?$?7??#$3Q	*-?\?4*	%F	&c	'e	(h518MOQ)*3/*?_?4%F51+034?0?????517@<???????=>*	

		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy