com.google.common.collect.Queues.class Maven / Gradle / Ivy
???? 4 ?
java/lang/Object ()V 'java/util/concurrent/ArrayBlockingQueue
(I)V
java/util/ArrayDeque
java/util/Collection
(Ljava/util/Collection;)V
#com/google/common/collect/Iterables addAll -(Ljava/util/Collection;Ljava/lang/Iterable;)Z *java/util/concurrent/ConcurrentLinkedQueue
(java/util/concurrent/LinkedBlockingDeque
$ (java/util/concurrent/LinkedBlockingQueue
#
#
# ) *java/util/concurrent/PriorityBlockingQueue
(
( - java/util/PriorityQueue
,
, 1 %java/util/concurrent/SynchronousQueue
0
4 5 6 7 8 java/time/Duration toNanos ()J : ; < = > java/util/concurrent/TimeUnit NANOSECONDS Ljava/util/concurrent/TimeUnit;
@ A B C D com/google/common/collect/Queues drain ^(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection;IJLjava/util/concurrent/TimeUnit;)I
F G H I J $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
L M N O 8 java/lang/System nanoTime
: Q 7 R (J)J T U V W X "java/util/concurrent/BlockingQueue drainTo (Ljava/util/Collection;I)I T Z [ \ poll 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; ^ _ ` add (Ljava/lang/Object;)Z
@ b c D drainUninterruptibly e java/lang/InterruptedException
g h i j k java/lang/Thread
currentThread ()Ljava/lang/Thread;
g m n interrupt
p q r s t &com/google/common/collect/Synchronized queue 6(Ljava/util/Queue;Ljava/lang/Object;)Ljava/util/Queue;
p v w x deque 6(Ljava/util/Deque;Ljava/lang/Object;)Ljava/util/Deque; Code LineNumberTable LocalVariableTable this "Lcom/google/common/collect/Queues; newArrayBlockingQueue ,(I)Ljava/util/concurrent/ArrayBlockingQueue; capacity I MethodParameters Signature G(I)Ljava/util/concurrent/ArrayBlockingQueue; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible;
newArrayDeque ()Ljava/util/ArrayDeque; 3()Ljava/util/ArrayDeque; ,(Ljava/lang/Iterable;)Ljava/util/ArrayDeque; elements Ljava/lang/Iterable; Ljava/util/ArrayDeque; LocalVariableTypeTable Ljava/lang/Iterable<+TE;>; Ljava/util/ArrayDeque;
StackMapTable M(Ljava/lang/Iterable<+TE;>;)Ljava/util/ArrayDeque; newConcurrentLinkedQueue .()Ljava/util/concurrent/ConcurrentLinkedQueue; I()Ljava/util/concurrent/ConcurrentLinkedQueue; B(Ljava/lang/Iterable;)Ljava/util/concurrent/ConcurrentLinkedQueue; ,Ljava/util/concurrent/ConcurrentLinkedQueue; 1Ljava/util/concurrent/ConcurrentLinkedQueue; c(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/ConcurrentLinkedQueue; newLinkedBlockingDeque ,()Ljava/util/concurrent/LinkedBlockingDeque; G()Ljava/util/concurrent/LinkedBlockingDeque; -(I)Ljava/util/concurrent/LinkedBlockingDeque; H(I)Ljava/util/concurrent/LinkedBlockingDeque; @(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingDeque; *Ljava/util/concurrent/LinkedBlockingDeque; /Ljava/util/concurrent/LinkedBlockingDeque; a(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/LinkedBlockingDeque; newLinkedBlockingQueue ,()Ljava/util/concurrent/LinkedBlockingQueue; G()Ljava/util/concurrent/LinkedBlockingQueue; -(I)Ljava/util/concurrent/LinkedBlockingQueue; H(I)Ljava/util/concurrent/LinkedBlockingQueue; @(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingQueue; *Ljava/util/concurrent/LinkedBlockingQueue; /Ljava/util/concurrent/LinkedBlockingQueue; a(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/LinkedBlockingQueue; newPriorityBlockingQueue .()Ljava/util/concurrent/PriorityBlockingQueue; N()Ljava/util/concurrent/PriorityBlockingQueue; B(Ljava/lang/Iterable;)Ljava/util/concurrent/PriorityBlockingQueue; ,Ljava/util/concurrent/PriorityBlockingQueue; 1Ljava/util/concurrent/PriorityBlockingQueue; h(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/PriorityBlockingQueue; newPriorityQueue ()Ljava/util/PriorityQueue; ;()Ljava/util/PriorityQueue; /(Ljava/lang/Iterable;)Ljava/util/PriorityQueue; Ljava/util/PriorityQueue; Ljava/util/PriorityQueue; U(Ljava/lang/Iterable<+TE;>;)Ljava/util/PriorityQueue; newSynchronousQueue )()Ljava/util/concurrent/SynchronousQueue; D()Ljava/util/concurrent/SynchronousQueue; R(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection;ILjava/time/Duration;)I q $Ljava/util/concurrent/BlockingQueue; buffer Ljava/util/Collection; numElements timeout Ljava/time/Duration; )Ljava/util/concurrent/BlockingQueue; Ljava/util/Collection<-TE;>;
Exceptions s(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection<-TE;>;ILjava/time/Duration;)I 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; e Ljava/lang/Object; J unit deadline added TE; (Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection<-TE;>;IJLjava/util/concurrent/TimeUnit;)I ex Ljava/lang/InterruptedException; interrupted Z ? java/lang/Throwable synchronizedQueue $(Ljava/util/Queue;)Ljava/util/Queue; Ljava/util/Queue; Ljava/util/Queue; D(Ljava/util/Queue;)Ljava/util/Queue; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; synchronizedDeque $(Ljava/util/Deque;)Ljava/util/Deque; Ljava/util/Deque; Ljava/util/Deque; D(Ljava/util/Deque;)Ljava/util/Deque;
SourceFile Queues.java RuntimeVisibleAnnotations ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated 1 @ y / *? ? z 0 { | } ~ y 3 ? Y? ? z ; { ? ? ? ? ? ? ?
? ? ? ? y ? Y? ? z F ? ? ? ? y ? #*? ? ? Y*? ? ?? Y? L+*? W+? z P Q S T ! U { # ? ? w ? ? # ? ? w ? ? ? ? ? ? ? ? y ? Y? ? z ^ ? ? ?
? ? ? ? y ? #*? ? ? Y*? ? ?? Y? L+*? W+? z i j l m ! n { # ? ? s ? ? # ? ? s ? ? ? ? ? ? ?
? ? ? ? y ? Y? ? z { ? ? ?
? ? ? ? y 3 ? Y? !? z ? { ? ? ? ? ? ? ?
? ? ? ? y ? #*? ? ? Y*? ? "?? Y? L+*? W+? z ? ? ? ? ! ? { # ? ? w ? ? # ? ? w ? ? ? ? ? ? ?
? ? ? ? y ? #Y? %? z ? ? ? ?
? ? ? ? y 3 ? #Y? &? z ? { ? ? ? ? ? ? ?
? ? ? ? y ? #*? ? ? #Y*? ? '?? #Y? %L+*? W+? z ? ? ? ? ! ? { # ? ? s ? ? # ? ? s ? ? ? ? ? ? ?
? ? ? ? y ? (Y? *? z ? ? ? ?
? ? ? ? y ? #*? ? ? (Y*? ? +?? (Y? *L+*? W+? z ? ? ? ? ! ? { # ? ? s ? ? # ? ? s ? ? ? ? ? ? ?
? ? ? ? y ? ,Y? .? z ? ? ? ? ? y ? #*? ? ? ,Y*? ? /?? ,Y? .L+*? W+? z !
{ # ? ? s ? ? # ? ? s ? ? ? ? ? ? ? ? y ? 0Y? 2? z ? ? ?
? ? C ? y r *+-? 3? 9? ?? z ) { * ? ? ? ? ? ? ? ? ? ? ? ? ? ? d ? ? ? ? ? ? ? ? ? ? ? C D y 7
[+? EW? K!? Pa76? A*+d? S `6???*? Ke? 9? Y : ? ? + ? ] W????? z 6
C I J K N *O 0P AQ FR IT RU UV XX { R A ? ? [ ? ? [ ? ? [ ? ? [ ? ? [ ? > J ? ? G ? ? ? A ? ? [ ? ? [ ? ? ? ? ? 4 ? ? d ? ? ? ? ? ? ? ? ? ? ? ? c ? y r *+-? 3? 9? a? z n { * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c D y ?
?+? EW? K!? Pa766 ? L*+d? S `6???*? Ke? 9? Y :
? :6 ???
? ? +
? ] W???? ? ? f? l? : ? ? f? l?? 3 D G d f t t v t z ^ ? ? ? ? ? ? -? 3? D? G? I? L? O? T? W? `? c? f? k? t? {? ?? ?? { p D ? ?
I ? ? O ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? > v ? ? s ? ? p ? ? ? * D ? ?
O ? ?
? ? ? ? ? ? ? &