class jdk.incubator.http.PushPublisher<T> extends jdk.incubator.http.AbstractPushPublisher<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.PushPublisher
super_class: jdk.incubator.http.AbstractPushPublisher
{
jdk.incubator.http.PushPublisher<T>.Subscription subscription;
descriptor: Ljdk/incubator/http/PushPublisher$Subscription;
flags: (0x0000)
Signature: Ljdk/incubator/http/PushPublisher<TT;>.Subscription;
java.util.concurrent.Flow$Subscriber<? super T> subscriber;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0000)
Signature: Ljava/util/concurrent/Flow$Subscriber<-TT;>;
jdk.incubator.http.AbstractPushPublisher$SubscriptionState state;
descriptor: Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
flags: (0x0000)
long demand;
descriptor: J
flags: (0x0000)
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.incubator.http.AbstractPushPublisher.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PushPublisher<TT;>;
public void acceptData(java.util.Optional<T>);
descriptor: (Ljava/util/Optional;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.PushPublisher.state:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
astore 2
start local 2 1: aload 2
getstatic jdk.incubator.http.AbstractPushPublisher$SubscriptionState.CANCELLED:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
if_acmpne 2
return
2: StackMap locals: jdk.incubator.http.AbstractPushPublisher$SubscriptionState
StackMap stack:
aload 2
getstatic jdk.incubator.http.AbstractPushPublisher$SubscriptionState.DONE:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
if_acmpne 4
3: new java.lang.IllegalStateException
dup
ldc "subscription complete"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.Optional.isPresent:()Z
ifne 8
5: aload 0
getfield jdk.incubator.http.PushPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.concurrent.Flow$Subscriber.onComplete:()V
6: aload 0
getstatic jdk.incubator.http.AbstractPushPublisher$SubscriptionState.DONE:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
putfield jdk.incubator.http.PushPublisher.state:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
7: return
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.PushPublisher.demand:J
lconst_0
lcmp
ifne 10
9: new java.lang.IllegalStateException
dup
ldc "demand == 0"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.incubator.http.PushPublisher.demand:J
lconst_1
lsub
putfield jdk.incubator.http.PushPublisher.demand:J
11: aload 0
getfield jdk.incubator.http.PushPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
invokeinterface java.util.concurrent.Flow$Subscriber.onNext:(Ljava/lang/Object;)V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/incubator/http/PushPublisher<TT;>;
0 13 1 item Ljava/util/Optional<TT;>;
1 13 2 s Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
Signature: (Ljava/util/Optional<TT;>;)V
MethodParameters:
Name Flags
item
public java.util.function.Consumer<java.util.Optional<T>> asDataConsumer();
descriptor: ()Ljava/util/function/Consumer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic accept(Ljdk/incubator/http/PushPublisher;)Ljava/util/function/Consumer;
Bootstrap: invokestatic 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;
Method arguments:
(Ljava/lang/Object;)V
jdk/incubator/http/PushPublisher.acceptData(Ljava/util/Optional;)V (5)
(Ljava/util/Optional;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PushPublisher<TT;>;
Signature: ()Ljava/util/function/Consumer<Ljava/util/Optional<TT;>;>;
public void subscribe(java.util.concurrent.Flow$Subscriber<? super T>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new jdk.incubator.http.PushPublisher$Subscription
dup
aload 0
aload 1
invokespecial jdk.incubator.http.PushPublisher$Subscription.<init>:(Ljdk/incubator/http/PushPublisher;Ljava/util/concurrent/Flow$Subscriber;)V
putfield jdk.incubator.http.PushPublisher.subscription:Ljdk/incubator/http/PushPublisher$Subscription;
1: aload 1
aload 0
getfield jdk.incubator.http.PushPublisher.subscription:Ljdk/incubator/http/PushPublisher$Subscription;
invokeinterface java.util.concurrent.Flow$Subscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/PushPublisher<TT;>;
0 3 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-TT;>;
Signature: (Ljava/util/concurrent/Flow$Subscriber<-TT;>;)V
MethodParameters:
Name Flags
subscriber
public void acceptError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.PushPublisher.state:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
getstatic jdk.incubator.http.AbstractPushPublisher$SubscriptionState.DONE:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
if_acmpne 2
1: new java.lang.IllegalStateException
dup
ldc "subscription complete"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.incubator.http.AbstractPushPublisher$SubscriptionState.CANCELLED:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
putfield jdk.incubator.http.PushPublisher.state:Ljdk/incubator/http/AbstractPushPublisher$SubscriptionState;
3: aload 0
getfield jdk.incubator.http.PushPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onError:(Ljava/lang/Throwable;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/PushPublisher<TT;>;
0 5 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
}
Signature: <T:Ljava/lang/Object;>Ljdk/incubator/http/AbstractPushPublisher<TT;>;
SourceFile: "PushPublisher.java"
NestMembers:
jdk.incubator.http.PushPublisher$Subscription
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
final SubscriptionState = jdk.incubator.http.AbstractPushPublisher$SubscriptionState of jdk.incubator.http.AbstractPushPublisher
private Subscription = jdk.incubator.http.PushPublisher$Subscription of jdk.incubator.http.PushPublisher