class io.vertx.core.eventbus.impl.clustered.ConnectionHolder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.core.eventbus.impl.clustered.ConnectionHolder
super_class: java.lang.Object
{
private static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PING_ADDRESS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "__vertx_ping"
private final io.vertx.core.eventbus.impl.clustered.ClusteredEventBus eventBus;
descriptor: Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.net.NetClient client;
descriptor: Lio/vertx/core/net/NetClient;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.net.impl.ServerID serverID;
descriptor: Lio/vertx/core/net/impl/ServerID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.spi.metrics.EventBusMetrics metrics;
descriptor: Lio/vertx/core/spi/metrics/EventBusMetrics;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Queue<io.vertx.core.eventbus.impl.clustered.ClusteredMessage> pending;
descriptor: Ljava/util/Queue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Queue<Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage;>;
private io.vertx.core.net.NetSocket socket;
descriptor: Lio/vertx/core/net/NetSocket;
flags: (0x0002) ACC_PRIVATE
private boolean connected;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private long timeoutID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long pingTimeoutID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.vertx.core.eventbus.impl.clustered.ClusteredEventBus, io.vertx.core.net.impl.ServerID, io.vertx.core.eventbus.EventBusOptions);
descriptor: (Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;Lio/vertx/core/net/impl/ServerID;Lio/vertx/core/eventbus/EventBusOptions;)V
flags: (0x0000)
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
2: aload 0
ldc -1
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pingTimeoutID:J
3: aload 0
aload 1
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.eventBus:Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
4: aload 0
aload 2
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
5: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.vertx:()Lio/vertx/core/impl/VertxInternal;
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
6: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.getMetrics:()Lio/vertx/core/spi/metrics/EventBusMetrics;
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.metrics:Lio/vertx/core/spi/metrics/EventBusMetrics;
7: new io.vertx.core.net.NetClientOptions
dup
aload 3
invokevirtual io.vertx.core.eventbus.EventBusOptions.toJson:()Lio/vertx/core/json/JsonObject;
invokespecial io.vertx.core.net.NetClientOptions.<init>:(Lio/vertx/core/json/JsonObject;)V
astore 4
start local 4 8: aload 4
aload 3
invokevirtual io.vertx.core.eventbus.EventBusOptions.getKeyCertOptions:()Lio/vertx/core/net/KeyCertOptions;
invokestatic io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.setCertOptions:(Lio/vertx/core/net/TCPSSLOptions;Lio/vertx/core/net/KeyCertOptions;)V
9: aload 4
aload 3
invokevirtual io.vertx.core.eventbus.EventBusOptions.getTrustOptions:()Lio/vertx/core/net/TrustOptions;
invokestatic io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.setTrustOptions:(Lio/vertx/core/net/TCPSSLOptions;Lio/vertx/core/net/TrustOptions;)V
10: aload 0
new io.vertx.core.net.impl.NetClientImpl
dup
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.vertx:()Lio/vertx/core/impl/VertxInternal;
aload 4
iconst_0
invokespecial io.vertx.core.net.impl.NetClientImpl.<init>:(Lio/vertx/core/impl/VertxInternal;Lio/vertx/core/net/NetClientOptions;Z)V
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.client:Lio/vertx/core/net/NetClient;
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 12 1 eventBus Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
0 12 2 serverID Lio/vertx/core/net/impl/ServerID;
0 12 3 options Lio/vertx/core/eventbus/EventBusOptions;
8 12 4 clientOptions Lio/vertx/core/net/NetClientOptions;
MethodParameters:
Name Flags
eventBus
serverID
options
synchronized void connect();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.connected:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.client:Lio/vertx/core/net/NetClient;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
getfield io.vertx.core.net.impl.ServerID.port:I
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
getfield io.vertx.core.net.impl.ServerID.host:Ljava/lang/String;
aload 0
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)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/clustered/ConnectionHolder.lambda$0(Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.net.NetClient.connect:(ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
synchronized void writeMessage(io.vertx.core.eventbus.impl.clustered.ClusteredMessage);
descriptor: (Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.connected:Z
ifeq 6
1: aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.encodeToWire:()Lio/vertx/core/buffer/Buffer;
astore 2
start local 2 2: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.metrics:Lio/vertx/core/spi/metrics/EventBusMetrics;
ifnull 4
3: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.metrics:Lio/vertx/core/spi/metrics/EventBusMetrics;
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.address:()Ljava/lang/String;
aload 2
invokeinterface io.vertx.core.buffer.Buffer.length:()I
invokeinterface io.vertx.core.spi.metrics.EventBusMetrics.messageWritten:(Ljava/lang/String;I)V
4: StackMap locals: io.vertx.core.buffer.Buffer
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.socket:Lio/vertx/core/net/NetSocket;
aload 2
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.writeHandler:()Lio/vertx/core/Handler;
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetSocket;
pop
end local 2 5: goto 11
6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
ifnonnull 10
7: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isDebugEnabled:()Z
ifeq 9
8: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Not connected to server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " - starting queuing"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.debug:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
10: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 12 1 message Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage;
2 5 2 data Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
message
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.vertx.core.net.impl.ConnectionBase.CLOSED_EXCEPTION:Lio/vertx/core/VertxException;
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.close:(Ljava/lang/Throwable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
private void close(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
ldc -1
lcmp
ifeq 2
1: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
invokeinterface io.vertx.core.Vertx.cancelTimer:(J)Z
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pingTimeoutID:J
ldc -1
lcmp
ifeq 4
3: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pingTimeoutID:J
invokeinterface io.vertx.core.Vertx.cancelTimer:(J)Z
pop
4: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
5: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
ifnull 13
6: aload 1
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
astore 4
start local 4 7: goto 11
start local 3 8: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.eventbus.impl.clustered.ClusteredMessage io.vertx.core.Future
StackMap stack:
aload 3
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.writeHandler:()Lio/vertx/core/Handler;
astore 5
start local 5 9: aload 5
ifnull 11
10: aload 5
aload 4
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 5 end local 3 11: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder java.lang.Throwable io.vertx.core.eventbus.impl.clustered.ConnectionHolder top io.vertx.core.Future
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.impl.clustered.ClusteredMessage
dup
astore 3
start local 3 12: ifnonnull 8
end local 4 end local 3 13: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder java.lang.Throwable io.vertx.core.eventbus.impl.clustered.ConnectionHolder
StackMap stack:
aload 2
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 2
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.client:Lio/vertx/core/net/NetClient;
invokeinterface io.vertx.core.net.NetClient.close:()V
18: goto 20
StackMap locals:
StackMap stack: java.lang.Exception
19: pop
20: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.eventBus:Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.connections:()Ljava/util/concurrent/ConcurrentMap;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 23
21: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isDebugEnabled:()Z
ifeq 23
22: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Cluster connection closed for server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.debug:(Ljava/lang/Object;)V
23: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 24 1 cause Ljava/lang/Throwable;
8 11 3 msg Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage<**>;
12 13 3 msg Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage<**>;
7 13 4 failure Lio/vertx/core/Future<Ljava/lang/Void;>;
9 11 5 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Exception table:
from to target type
5 14 15 any
15 16 15 any
17 18 19 Class java.lang.Exception
MethodParameters:
Name Flags
cause
private void schedulePing();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.eventBus:Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.options:()Lio/vertx/core/eventbus/EventBusOptions;
astore 1
start local 1 1: aload 0
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
aload 1
invokevirtual io.vertx.core.eventbus.EventBusOptions.getClusterPingInterval:()J
aload 0
aload 1
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;Lio/vertx/core/eventbus/EventBusOptions;)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/clustered/ConnectionHolder.lambda$1(Lio/vertx/core/eventbus/EventBusOptions;Ljava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.Vertx.setTimer:(JLio/vertx/core/Handler;)J
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pingTimeoutID:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
1 3 1 options Lio/vertx/core/eventbus/EventBusOptions;
private synchronized void connected(io.vertx.core.net.NetSocket);
descriptor: (Lio/vertx/core/net/NetSocket;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.socket:Lio/vertx/core/net/NetSocket;
1: aload 0
iconst_1
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.connected:Z
2: aload 1
aload 0
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)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/clustered/ConnectionHolder.lambda$3(Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.net.NetSocket.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/net/NetSocket;
pop
3: aload 1
aload 0
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)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/clustered/ConnectionHolder.lambda$4(Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.net.NetSocket.closeHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/net/NetSocket;
pop
4: aload 1
aload 0
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)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/clustered/ConnectionHolder.lambda$5(Lio/vertx/core/buffer/Buffer;)V (7)
(Lio/vertx/core/buffer/Buffer;)V
invokeinterface io.vertx.core.net.NetSocket.handler:(Lio/vertx/core/Handler;)Lio/vertx/core/net/NetSocket;
pop
5: aload 0
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.schedulePing:()V
6: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
ifnull 16
7: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isDebugEnabled:()Z
ifeq 9
8: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Draining the queue for server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.debug:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
invokeinterface java.util.Queue.iterator:()Ljava/util/Iterator;
astore 3
goto 15
StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.net.NetSocket top java.util.Iterator
StackMap stack:
10: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.eventbus.impl.clustered.ClusteredMessage
astore 2
start local 2 11: aload 2
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.encodeToWire:()Lio/vertx/core/buffer/Buffer;
astore 4
start local 4 12: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.metrics:Lio/vertx/core/spi/metrics/EventBusMetrics;
ifnull 14
13: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.metrics:Lio/vertx/core/spi/metrics/EventBusMetrics;
aload 2
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.address:()Ljava/lang/String;
aload 4
invokeinterface io.vertx.core.buffer.Buffer.length:()I
invokeinterface io.vertx.core.spi.metrics.EventBusMetrics.messageWritten:(Ljava/lang/String;I)V
14: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.net.NetSocket io.vertx.core.eventbus.impl.clustered.ClusteredMessage java.util.Iterator io.vertx.core.buffer.Buffer
StackMap stack:
aload 1
aload 4
aload 2
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.writeHandler:()Lio/vertx/core/Handler;
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetSocket;
pop
end local 4 end local 2 15: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.net.NetSocket top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
16: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.net.NetSocket
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pending:Ljava/util/Queue;
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 18 1 socket Lio/vertx/core/net/NetSocket;
11 15 2 message Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage;
12 15 4 data Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
socket
private void lambda$0(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.net.NetSocket
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.connected:(Lio/vertx/core/net/NetSocket;)V
2: goto 5
3: StackMap locals:
StackMap stack:
getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Connecting to server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " failed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
4: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.close:(Ljava/lang/Throwable;)V
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/clustered/ConnectionHolder;
0 6 1 res Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;
private void lambda$1(io.vertx.core.eventbus.EventBusOptions, java.lang.Long);
descriptor: (Lio/vertx/core/eventbus/EventBusOptions;Ljava/lang/Long;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=11, locals=5, args_size=3
start local 0 start local 2 0: aload 0
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
aload 1
invokevirtual io.vertx.core.eventbus.EventBusOptions.getClusterPingReplyInterval:()J
aload 0
invokedynamic handle(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)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/clustered/ConnectionHolder.lambda$2(Ljava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.Vertx.setTimer:(JLio/vertx/core/Handler;)J
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
1: new io.vertx.core.eventbus.impl.clustered.ClusteredMessage
dup
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
ldc "__vertx_ping"
aconst_null
aconst_null
aconst_null
new io.vertx.core.eventbus.impl.codecs.PingMessageCodec
dup
invokespecial io.vertx.core.eventbus.impl.codecs.PingMessageCodec.<init>:()V
iconst_1
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.eventBus:Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
aconst_null
invokespecial io.vertx.core.eventbus.impl.clustered.ClusteredMessage.<init>:(Lio/vertx/core/net/impl/ServerID;Ljava/lang/String;Ljava/lang/String;Lio/vertx/core/MultiMap;Ljava/lang/Object;Lio/vertx/core/eventbus/MessageCodec;ZLio/vertx/core/eventbus/impl/EventBusImpl;Lio/vertx/core/Handler;)V
2: astore 3
start local 3 3: aload 3
invokevirtual io.vertx.core.eventbus.impl.clustered.ClusteredMessage.encodeToWire:()Lio/vertx/core/buffer/Buffer;
astore 4
start local 4 4: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.socket:Lio/vertx/core/net/NetSocket;
aload 4
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/net/NetSocket;
pop
end local 4 end local 3 5: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 6 2 id1 Ljava/lang/Long;
3 5 3 pingMessage Lio/vertx/core/eventbus/impl/clustered/ClusteredMessage;
4 5 4 data Lio/vertx/core/buffer/Buffer;
private void lambda$3(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.close:(Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 2 1 err Ljava/lang/Throwable;
private void lambda$4(java.lang.Void);
descriptor: (Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.close:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 1 1 v Ljava/lang/Void;
private void lambda$5(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
invokeinterface io.vertx.core.Vertx.cancelTimer:(J)Z
pop
1: aload 0
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.schedulePing:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 3 1 data Lio/vertx/core/buffer/Buffer;
private void lambda$2(java.lang.Long);
descriptor: (Ljava/lang/Long;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "No pong from server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.serverID:Lio/vertx/core/net/impl/ServerID;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " - will consider it dead"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;)V
1: aload 0
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.close:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 3 1 id2 Ljava/lang/Long;
}
SourceFile: "ConnectionHolder.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles