public class io.vertx.ext.mongo.impl.GridFSReadStreamPublisher implements org.reactivestreams.Publisher<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.mongo.impl.GridFSReadStreamPublisher
super_class: java.lang.Object
{
private final io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream;
descriptor: Lio/vertx/core/streams/ReadStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/core/streams/ReadStream<Lio/vertx/core/buffer/Buffer;>;
private final java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription> current;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscription;>;
public void <init>(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>);
descriptor: (Lio/vertx/core/streams/ReadStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
2: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.current:Ljava/util/concurrent/atomic/AtomicReference;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;
0 4 1 stream Lio/vertx/core/streams/ReadStream<Lio/vertx/core/buffer/Buffer;>;
Signature: (Lio/vertx/core/streams/ReadStream<Lio/vertx/core/buffer/Buffer;>;)V
MethodParameters:
Name Flags
stream
private void release();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.current:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 1
start local 1 1: aload 1
ifnull 19
2: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.current:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 19
3: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aconst_null
invokeinterface io.vertx.core.streams.ReadStream.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
4: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aconst_null
invokeinterface io.vertx.core.streams.ReadStream.endHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
5: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aconst_null
invokeinterface io.vertx.core.streams.ReadStream.handler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
6: goto 16
StackMap locals: io.vertx.ext.mongo.impl.GridFSReadStreamPublisher org.reactivestreams.Subscription
StackMap stack: java.lang.Exception
7: pop
8: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
invokeinterface io.vertx.core.streams.ReadStream.resume:()Lio/vertx/core/streams/ReadStream;
pop
9: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
10: pop
goto 19
11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
12: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
invokeinterface io.vertx.core.streams.ReadStream.resume:()Lio/vertx/core/streams/ReadStream;
pop
13: goto 15
StackMap locals: io.vertx.ext.mongo.impl.GridFSReadStreamPublisher org.reactivestreams.Subscription java.lang.Throwable
StackMap stack: java.lang.Exception
14: pop
15: StackMap locals:
StackMap stack:
aload 2
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
invokeinterface io.vertx.core.streams.ReadStream.resume:()Lio/vertx/core/streams/ReadStream;
pop
17: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
18: pop
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;
1 20 1 sub Lorg/reactivestreams/Subscription;
Exception table:
from to target type
3 6 7 Class java.lang.Exception
8 9 10 Class java.lang.Exception
3 8 11 any
12 13 14 Class java.lang.Exception
16 17 18 Class java.lang.Exception
public void subscribe(org.reactivestreams.Subscriber<? super java.nio.ByteBuffer>);
descriptor: (Lorg/reactivestreams/Subscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new io.vertx.ext.mongo.impl.GridFSReadStreamPublisher$1
dup
aload 0
invokespecial io.vertx.ext.mongo.impl.GridFSReadStreamPublisher$1.<init>:(Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;)V
astore 2
start local 2 1: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.current:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 2
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 4
2: aload 1
new java.lang.IllegalStateException
dup
ldc "This processor allows only a single Subscriber"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
3: return
4: StackMap locals: org.reactivestreams.Subscription
StackMap stack:
aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
invokeinterface io.vertx.core.streams.ReadStream.pause:()Lio/vertx/core/streams/ReadStream;
pop
5: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;Lorg/reactivestreams/Subscriber;)Lio/vertx/core/Handler;
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
io/vertx/ext/mongo/impl/GridFSReadStreamPublisher.lambda$0(Lorg/reactivestreams/Subscriber;Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.streams.ReadStream.endHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
6: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;Lorg/reactivestreams/Subscriber;)Lio/vertx/core/Handler;
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
io/vertx/ext/mongo/impl/GridFSReadStreamPublisher.lambda$1(Lorg/reactivestreams/Subscriber;Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.streams.ReadStream.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
7: aload 0
getfield io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.stream:Lio/vertx/core/streams/ReadStream;
aload 1
invokedynamic handle(Lorg/reactivestreams/Subscriber;)Lio/vertx/core/Handler;
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
io/vertx/ext/mongo/impl/GridFSReadStreamPublisher.lambda$2(Lorg/reactivestreams/Subscriber;Lio/vertx/core/buffer/Buffer;)V (6)
(Lio/vertx/core/buffer/Buffer;)V
invokeinterface io.vertx.core.streams.ReadStream.handler:(Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
pop
8: aload 1
aload 2
invokeinterface org.reactivestreams.Subscriber.onSubscribe:(Lorg/reactivestreams/Subscription;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;
0 10 1 subscriber Lorg/reactivestreams/Subscriber<-Ljava/nio/ByteBuffer;>;
1 10 2 sub Lorg/reactivestreams/Subscription;
Signature: (Lorg/reactivestreams/Subscriber<-Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
subscriber
private void lambda$0(org.reactivestreams.Subscriber, java.lang.Void);
descriptor: (Lorg/reactivestreams/Subscriber;Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 2 0: aload 0
invokevirtual io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.release:()V
1: aload 1
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;
0 3 2 v Ljava/lang/Void;
private void lambda$1(org.reactivestreams.Subscriber, java.lang.Throwable);
descriptor: (Lorg/reactivestreams/Subscriber;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
invokevirtual io.vertx.ext.mongo.impl.GridFSReadStreamPublisher.release:()V
1: aload 1
aload 2
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/mongo/impl/GridFSReadStreamPublisher;
0 3 2 err Ljava/lang/Throwable;
private static void lambda$2(org.reactivestreams.Subscriber, io.vertx.core.buffer.Buffer);
descriptor: (Lorg/reactivestreams/Subscriber;Lio/vertx/core/buffer/Buffer;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.buffer.Buffer.getBytes:()[B
astore 2
start local 2 1: aload 2
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: aload 0
aload 3
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
end local 3 end local 2 3: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 4 1 buffer Lio/vertx/core/buffer/Buffer;
1 3 2 bytes [B
2 3 3 wrapper Ljava/nio/ByteBuffer;
}
Signature: Ljava/lang/Object;Lorg/reactivestreams/Publisher<Ljava/nio/ByteBuffer;>;
SourceFile: "GridFSReadStreamPublisher.java"
NestMembers:
io.vertx.ext.mongo.impl.GridFSReadStreamPublisher$1
InnerClasses:
io.vertx.ext.mongo.impl.GridFSReadStreamPublisher$1
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles