public class io.vertx.core.eventbus.impl.MessageConsumerImpl<T> extends io.vertx.core.eventbus.impl.HandlerRegistration<T> implements io.vertx.core.eventbus.MessageConsumer<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.eventbus.impl.MessageConsumerImpl
super_class: io.vertx.core.eventbus.impl.HandlerRegistration
{
private static final io.vertx.core.impl.logging.Logger log;
descriptor: Lio/vertx/core/impl/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_MAX_BUFFERED_MESSAGES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.ContextInternal context;
descriptor: Lio/vertx/core/impl/ContextInternal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.eventbus.impl.EventBusImpl eventBus;
descriptor: Lio/vertx/core/eventbus/impl/EventBusImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String address;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean localOnly;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> handler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
private io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
private io.vertx.core.Handler<java.lang.Void> endHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Ljava/lang/Void;>;
private io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> discardHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
private int maxBufferedMessages;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.Queue<io.vertx.core.eventbus.Message<T>> pending;
descriptor: Ljava/util/Queue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Queue<Lio/vertx/core/eventbus/Message<TT;>;>;
private long demand;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.Promise<java.lang.Void> result;
descriptor: Lio/vertx/core/Promise;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Promise<Ljava/lang/Void;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/eventbus/impl/MessageConsumerImpl;
invokestatic io.vertx.core.impl.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/impl/logging/Logger;
putstatic io.vertx.core.eventbus.impl.MessageConsumerImpl.log:Lio/vertx/core/impl/logging/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.vertx.core.Vertx, io.vertx.core.impl.ContextInternal, io.vertx.core.eventbus.impl.EventBusImpl, java.lang.String, boolean);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/eventbus/impl/EventBusImpl;Ljava/lang/String;Z)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 2
aload 3
aload 4
iconst_0
invokespecial io.vertx.core.eventbus.impl.HandlerRegistration.<init>:(Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/eventbus/impl/EventBusImpl;Ljava/lang/String;Z)V
1: aload 0
sipush 1000
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.maxBufferedMessages:I
2: aload 0
new java.util.ArrayDeque
dup
bipush 8
invokespecial java.util.ArrayDeque.<init>:(I)V
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
3: aload 0
ldc 9223372036854775807
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
4: aload 0
aload 1
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.vertx:Lio/vertx/core/Vertx;
5: aload 0
aload 2
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
6: aload 0
aload 3
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.eventBus:Lio/vertx/core/eventbus/impl/EventBusImpl;
7: aload 0
aload 4
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.address:Ljava/lang/String;
8: aload 0
iload 5
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.localOnly:Z
9: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 10 1 vertx Lio/vertx/core/Vertx;
0 10 2 context Lio/vertx/core/impl/ContextInternal;
0 10 3 eventBus Lio/vertx/core/eventbus/impl/EventBusImpl;
0 10 4 address Ljava/lang/String;
0 10 5 localOnly Z
MethodParameters:
Name Flags
vertx
context
eventBus
address
localOnly
public io.vertx.core.eventbus.MessageConsumer<T> setMaxBufferedMessages(int);
descriptor: (I)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "Max buffered messages cannot be negative"
invokestatic io.vertx.core.impl.Arguments.require:(ZLjava/lang/String;)V
3: aload 0
dup
astore 4
monitorenter
4: aload 0
iload 1
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.maxBufferedMessages:I
5: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
iload 1
isub
istore 5
start local 5 6: iload 5
ifgt 9
7: aload 0
aload 4
monitorexit
8: areturn
9: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int top top io.vertx.core.eventbus.impl.MessageConsumerImpl int
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifeq 12
10: aload 0
aload 4
monitorexit
11: areturn
12: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
astore 3
start local 3 13: new java.util.ArrayList
dup
iload 5
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 14: goto 16
15: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int java.util.List io.vertx.core.Handler io.vertx.core.eventbus.impl.MessageConsumerImpl int
StackMap stack:
aload 2
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.Message
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
iload 1
if_icmpgt 15
end local 5 17: aload 4
monitorexit
18: goto 21
end local 3 end local 2 StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int top top io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack: java.lang.Throwable
19: aload 4
monitorexit
20: athrow
start local 2 start local 3 21: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int java.util.List io.vertx.core.Handler
StackMap stack:
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 26
StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int java.util.List io.vertx.core.Handler top java.util.Iterator
StackMap stack:
22: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.Message
astore 4
start local 4 23: aload 3
ifnull 25
24: aload 3
aload 4
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
25: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int java.util.List io.vertx.core.Handler io.vertx.core.eventbus.Message java.util.Iterator
StackMap stack:
aload 0
aload 4
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.discard:(Lio/vertx/core/eventbus/Message;)V
end local 4 26: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl int java.util.List io.vertx.core.Handler top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 22
27: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 28 1 maxBufferedMessages I
14 19 2 discarded Ljava/util/List<Lio/vertx/core/eventbus/Message<TT;>;>;
21 28 2 discarded Ljava/util/List<Lio/vertx/core/eventbus/Message<TT;>;>;
13 19 3 discardHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
21 28 3 discardHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
6 17 5 overflow I
23 26 4 msg Lio/vertx/core/eventbus/Message<TT;>;
Exception table:
from to target type
4 8 19 any
9 11 19 any
12 18 19 any
19 20 19 any
Signature: (I)Lio/vertx/core/eventbus/MessageConsumer<TT;>;
MethodParameters:
Name Flags
maxBufferedMessages
public synchronized int getMaxBufferedMessages();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.maxBufferedMessages:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
public java.lang.String address();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.address:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
public synchronized void completionHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
ifnull 4
2: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.completionHandler:Lio/vertx/core/Handler;
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 6 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
handler
public synchronized io.vertx.core.Future<java.lang.Void> unregister();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
aconst_null
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.endHandler:Lio/vertx/core/Handler;
ifnull 3
2: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.endHandler:Lio/vertx/core/Handler;
aconst_null
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
ifle 13
4: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
astore 1
start local 1 5: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
astore 2
start local 2 6: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
7: aload 1
invokeinterface java.util.Queue.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl java.util.Queue io.vertx.core.Handler top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.Message
astore 3
start local 3 9: aload 0
aload 3
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.discard:(Lio/vertx/core/eventbus/Message;)V
10: aload 2
ifnull 12
11: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
aload 3
aload 2
invokeinterface io.vertx.core.impl.ContextInternal.emit:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 2 end local 1 13: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
14: aload 0
invokespecial io.vertx.core.eventbus.impl.HandlerRegistration.unregister:()Lio/vertx/core/Future;
astore 1
start local 1 15: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
astore 2
start local 2 16: aload 2
ifnull 19
17: aload 1
aload 2
invokedynamic handle(Lio/vertx/core/Promise;)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/core/eventbus/impl/MessageConsumerImpl.lambda$0(Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
18: aload 0
aconst_null
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
19: StackMap locals: io.vertx.core.Future io.vertx.core.Promise
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
5 13 1 discarded Ljava/util/Queue<Lio/vertx/core/eventbus/Message<TT;>;>;
6 13 2 handler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
9 12 3 msg Lio/vertx/core/eventbus/Message<TT;>;
15 20 1 fut Lio/vertx/core/Future<Ljava/lang/Void;>;
16 20 2 res Lio/vertx/core/Promise<Ljava/lang/Void;>;
Signature: ()Lio/vertx/core/Future<Ljava/lang/Void;>;
protected boolean doReceive(io.vertx.core.eventbus.Message<T>);
descriptor: (Lio/vertx/core/eventbus/Message;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
ifnonnull 4
2: aload 3
monitorexit
3: iconst_0
ireturn
4: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl io.vertx.core.eventbus.Message top io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_0
lcmp
ifne 16
5: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.maxBufferedMessages:I
if_icmpge 9
6: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
7: aload 3
monitorexit
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.discard:(Lio/vertx/core/eventbus/Message;)V
10: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
ifnull 13
11: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
aload 1
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
12: goto 14
13: StackMap locals:
StackMap stack:
getstatic io.vertx.core.eventbus.impl.MessageConsumerImpl.log:Lio/vertx/core/impl/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Discarding message as more than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.maxBufferedMessages:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " buffered in paused consumer. address: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.address:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface io.vertx.core.impl.logging.Logger.warn:(Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 3
monitorexit
15: iconst_1
ireturn
16: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
ifle 19
17: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
18: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.Message
astore 1
19: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
ldc 9223372036854775807
lcmp
ifeq 21
20: aload 0
dup
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_1
lsub
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
21: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
astore 2
start local 2 22: aload 3
monitorexit
23: goto 26
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
24: aload 3
monitorexit
25: athrow
start local 2 26: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl io.vertx.core.eventbus.Message io.vertx.core.Handler
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.deliver:(Lio/vertx/core/Handler;Lio/vertx/core/eventbus/Message;)V
27: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 28 1 message Lio/vertx/core/eventbus/Message<TT;>;
22 24 2 theHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
26 28 2 theHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
Exception table:
from to target type
1 3 24 any
4 8 24 any
9 15 24 any
16 23 24 any
24 25 24 any
Signature: (Lio/vertx/core/eventbus/Message<TT;>;)Z
MethodParameters:
Name Flags
message
protected void dispatch(io.vertx.core.eventbus.Message<T>, io.vertx.core.impl.ContextInternal, io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>);
descriptor: (Lio/vertx/core/eventbus/Message;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Handler;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 2
aload 1
aload 3
invokeinterface io.vertx.core.impl.ContextInternal.emit:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 4 1 msg Lio/vertx/core/eventbus/Message<TT;>;
0 4 2 context Lio/vertx/core/impl/ContextInternal;
0 4 3 handler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
Signature: (Lio/vertx/core/eventbus/Message<TT;>;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;)V
MethodParameters:
Name Flags
msg
context
handler
private void deliver(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>, io.vertx.core.eventbus.Message<T>);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/eventbus/Message;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.duplicate:()Lio/vertx/core/impl/ContextInternal;
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.dispatch:(Lio/vertx/core/Handler;Lio/vertx/core/eventbus/Message;Lio/vertx/core/impl/ContextInternal;)V
1: aload 0
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.checkNextTick:()V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 3 1 theHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
0 3 2 message Lio/vertx/core/eventbus/Message<TT;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;Lio/vertx/core/eventbus/Message<TT;>;)V
MethodParameters:
Name Flags
theHandler
message
private synchronized void checkNextTick();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifne 2
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_0
lcmp
ifle 2
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.nettyEventLoop:()Lio/netty/channel/EventLoop;
aload 0
invokedynamic run(Lio/vertx/core/eventbus/impl/MessageConsumerImpl;)Ljava/lang/Runnable;
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:
()V
io/vertx/core/eventbus/impl/MessageConsumerImpl.lambda$1()V (7)
()V
invokeinterface io.netty.channel.EventLoop.execute:(Ljava/lang/Runnable;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
public synchronized void discardHandler(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.discardHandler:Lio/vertx/core/Handler;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 2 1 handler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;)V
MethodParameters:
Name Flags
handler
public synchronized io.vertx.core.eventbus.MessageConsumer<T> handler(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 15
1: aload 0
dup
astore 2
monitorenter
2: aload 0
aload 1
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
3: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
ifnonnull 11
4: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 3
start local 3 5: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.completionHandler:Lio/vertx/core/Handler;
ifnull 7
6: aload 3
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.completionHandler:Lio/vertx/core/Handler;
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
7: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl io.vertx.core.Promise
StackMap stack:
aload 0
aload 3
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.result:Lio/vertx/core/Promise;
8: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 4
start local 4 9: aload 0
aconst_null
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.localOnly:Z
aload 4
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.register:(Ljava/lang/String;ZLio/vertx/core/Promise;)V
10: aload 4
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 3
invokedynamic handle(Lio/vertx/core/Promise;)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/core/eventbus/impl/MessageConsumerImpl.lambda$2(Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
monitorexit
12: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 2
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.unregister:()Lio/vertx/core/Future;
pop
16: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 17 1 h Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
5 11 3 p Lio/vertx/core/Promise<Ljava/lang/Void;>;
9 11 4 reg Lio/vertx/core/Promise<Ljava/lang/Void;>;
Exception table:
from to target type
2 12 13 any
13 14 13 any
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;)Lio/vertx/core/eventbus/MessageConsumer<TT;>;
MethodParameters:
Name Flags
h
public io.vertx.core.streams.ReadStream<T> bodyStream();
descriptor: ()Lio/vertx/core/streams/ReadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.vertx.core.eventbus.impl.BodyReadStream
dup
aload 0
invokespecial io.vertx.core.eventbus.impl.BodyReadStream.<init>:(Lio/vertx/core/streams/ReadStream;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
Signature: ()Lio/vertx/core/streams/ReadStream<TT;>;
public synchronized io.vertx.core.eventbus.MessageConsumer<T> pause();
descriptor: ()Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
Signature: ()Lio/vertx/core/eventbus/MessageConsumer<TT;>;
public io.vertx.core.eventbus.MessageConsumer<T> resume();
descriptor: ()Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc 9223372036854775807
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.fetch:(J)Lio/vertx/core/eventbus/MessageConsumer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
Signature: ()Lio/vertx/core/eventbus/MessageConsumer<TT;>;
public synchronized io.vertx.core.eventbus.MessageConsumer<T> fetch(long);
descriptor: (J)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lload 1
ladd
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
3: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_0
lcmp
ifge 5
4: aload 0
ldc 9223372036854775807
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
5: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_0
lcmp
ifle 7
6: aload 0
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.checkNextTick:()V
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 8 1 amount J
Signature: (J)Lio/vertx/core/eventbus/MessageConsumer<TT;>;
MethodParameters:
Name Flags
amount
public synchronized io.vertx.core.eventbus.MessageConsumer<T> endHandler(io.vertx.core.Handler<java.lang.Void>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 4
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.getOrCreateContext:()Lio/vertx/core/Context;
astore 2
start local 2 2: aload 0
aload 2
aload 1
invokedynamic handle(Lio/vertx/core/Context;Lio/vertx/core/Handler;)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/core/eventbus/impl/MessageConsumerImpl.lambda$3(Lio/vertx/core/Context;Lio/vertx/core/Handler;Ljava/lang/Void;)V (6)
(Ljava/lang/Void;)V
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.endHandler:Lio/vertx/core/Handler;
end local 2 3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.endHandler:Lio/vertx/core/Handler;
5: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 6 1 endHandler Lio/vertx/core/Handler<Ljava/lang/Void;>;
2 3 2 endCtx Lio/vertx/core/Context;
Signature: (Lio/vertx/core/Handler<Ljava/lang/Void;>;)Lio/vertx/core/eventbus/MessageConsumer<TT;>;
MethodParameters:
Name Flags
endHandler
public synchronized io.vertx.core.eventbus.MessageConsumer<T> exceptionHandler(io.vertx.core.Handler<java.lang.Throwable>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
0 1 1 handler Lio/vertx/core/Handler<Ljava/lang/Throwable;>;
Signature: (Lio/vertx/core/Handler<Ljava/lang/Throwable;>;)Lio/vertx/core/eventbus/MessageConsumer<TT;>;
MethodParameters:
Name Flags
handler
public synchronized io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> getHandler();
descriptor: ()Lio/vertx/core/Handler;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
Signature: ()Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
public io.vertx.core.streams.ReadStream pause();
descriptor: ()Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.pause:()Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.ReadStream handler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.core.Handler
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:(Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.ReadStream endHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.endHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.ReadStream resume();
descriptor: ()Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.resume:()Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.ReadStream fetch(long);
descriptor: (J)Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
0: aload 0
lload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.fetch:(J)Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.StreamBase exceptionHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/streams/StreamBase;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.streams.ReadStream exceptionHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/streams/ReadStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/MessageConsumer;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(io.vertx.core.Promise, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
ldc "Consumer unregistered before registration completed"
invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/String;)Z
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
private void lambda$1();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
dup
astore 3
monitorenter
1: aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_0
lcmp
ifeq 3
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.Message
dup
astore 1
start local 1 2: ifnonnull 5
end local 1 3: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl top top io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack:
aload 3
monitorexit
4: return
start local 1 5: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl io.vertx.core.eventbus.Message top io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
ldc 9223372036854775807
lcmp
ifeq 7
6: aload 0
dup
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
lconst_1
lsub
putfield io.vertx.core.eventbus.impl.MessageConsumerImpl.demand:J
7: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.MessageConsumerImpl.handler:Lio/vertx/core/Handler;
astore 2
start local 2 8: aload 3
monitorexit
9: goto 12
end local 2 end local 1 StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl top top io.vertx.core.eventbus.impl.MessageConsumerImpl
StackMap stack: java.lang.Throwable
10: aload 3
monitorexit
11: athrow
start local 1 start local 2 12: StackMap locals: io.vertx.core.eventbus.impl.MessageConsumerImpl io.vertx.core.eventbus.Message io.vertx.core.Handler
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual io.vertx.core.eventbus.impl.MessageConsumerImpl.deliver:(Lio/vertx/core/Handler;Lio/vertx/core/eventbus/Message;)V
end local 2 end local 1 13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/vertx/core/eventbus/impl/MessageConsumerImpl<TT;>;
2 3 1 message Lio/vertx/core/eventbus/Message<TT;>;
5 10 1 message Lio/vertx/core/eventbus/Message<TT;>;
12 13 1 message Lio/vertx/core/eventbus/Message<TT;>;
8 10 2 theHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
12 13 2 theHandler Lio/vertx/core/Handler<Lio/vertx/core/eventbus/Message<TT;>;>;
Exception table:
from to target type
1 4 10 any
5 9 10 any
10 11 10 any
private static void lambda$2(io.vertx.core.Promise, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
invokeinterface io.vertx.core.Promise.tryComplete:()Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/Throwable;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
private static void lambda$3(io.vertx.core.Context, io.vertx.core.Handler, java.lang.Void);
descriptor: (Lio/vertx/core/Context;Lio/vertx/core/Handler;Ljava/lang/Void;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 1
invokedynamic handle(Lio/vertx/core/Handler;)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/core/eventbus/impl/MessageConsumerImpl.lambda$4(Lio/vertx/core/Handler;Ljava/lang/Void;)V (6)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.Context.runOnContext:(Lio/vertx/core/Handler;)V
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 v1 Ljava/lang/Void;
private static void lambda$4(io.vertx.core.Handler, java.lang.Void);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/Void;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aconst_null
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 v2 Ljava/lang/Void;
}
Signature: <T:Ljava/lang/Object;>Lio/vertx/core/eventbus/impl/HandlerRegistration<TT;>;Lio/vertx/core/eventbus/MessageConsumer<TT;>;
SourceFile: "MessageConsumerImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles