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.impl.logging.Logger log;
descriptor: Lio/vertx/core/impl/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 java.lang.String remoteNodeId;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.VertxInternal vertx;
descriptor: Lio/vertx/core/impl/VertxInternal;
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 final io.vertx.core.eventbus.EventBusOptions busOptions;
descriptor: Lio/vertx/core/eventbus/EventBusOptions;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.CloseFuture clientCloseFuture;
descriptor: Lio/vertx/core/impl/CloseFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.vertx.core.net.NetClient client;
descriptor: Lio/vertx/core/net/NetClient;
flags: (0x0002) ACC_PRIVATE
private java.util.Queue<io.vertx.core.eventbus.impl.OutboundDeliveryContext<?>> pending;
descriptor: Ljava/util/Queue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Queue<Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;>;
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.impl.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/impl/logging/Logger;
putstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/impl/logging/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.vertx.core.eventbus.impl.clustered.ClusteredEventBus, java.lang.String, io.vertx.core.eventbus.EventBusOptions);
descriptor: (Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;Ljava/lang/String;Lio/vertx/core/eventbus/EventBusOptions;)V
flags: (0x0000)
Code:
stack=3, locals=4, 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 3
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.busOptions:Lio/vertx/core/eventbus/EventBusOptions;
5: aload 0
aload 2
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.remoteNodeId:Ljava/lang/String;
6: 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/impl/VertxInternal;
7: 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;
8: aload 0
new io.vertx.core.impl.CloseFuture
dup
invokespecial io.vertx.core.impl.CloseFuture.<init>:()V
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
9: return
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/clustered/ConnectionHolder;
0 10 1 eventBus Lio/vertx/core/eventbus/impl/clustered/ClusteredEventBus;
0 10 2 remoteNodeId Ljava/lang/String;
0 10 3 options Lio/vertx/core/eventbus/EventBusOptions;
MethodParameters:
Name Flags
eventBus
remoteNodeId
options
private io.vertx.core.net.NetClientOptions getClientOptions(io.vertx.core.eventbus.EventBusOptions);
descriptor: (Lio/vertx/core/eventbus/EventBusOptions;)Lio/vertx/core/net/NetClientOptions;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new io.vertx.core.net.NetClientOptions
dup
aload 1
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
areturn
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 options Lio/vertx/core/eventbus/EventBusOptions;
MethodParameters:
Name Flags
options
void connect();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.client:Lio/vertx/core/net/NetClient;
ifnull 4
2: aload 1
monitorexit
3: return
4: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder
StackMap stack:
aload 0
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.busOptions:Lio/vertx/core/eventbus/EventBusOptions;
invokevirtual io.vertx.core.eventbus.impl.clustered.ConnectionHolder.getClientOptions:(Lio/vertx/core/eventbus/EventBusOptions;)Lio/vertx/core/net/NetClientOptions;
astore 2
start local 2 5: aload 0
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.vertx:Lio/vertx/core/impl/VertxInternal;
aload 2
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
invokeinterface io.vertx.core.impl.VertxInternal.createNetClient:(Lio/vertx/core/net/NetClientOptions;Lio/vertx/core/impl/CloseFuture;)Lio/vertx/core/net/NetClient;
putfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.client:Lio/vertx/core/net/NetClient;
end local 2 6: aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
astore 1
start local 1 11: 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.vertx:()Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getClusterManager:()Lio/vertx/core/spi/cluster/ClusterManager;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.remoteNodeId:Ljava/lang/String;
aload 1
invokeinterface io.vertx.core.spi.cluster.ClusterManager.getNodeInfo:(Ljava/lang/String;Lio/vertx/core/Promise;)V
12: aload 1
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
13: aload 0
invokedynamic apply(Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
io/vertx/core/eventbus/impl/clustered/ConnectionHolder.lambda$0(Lio/vertx/core/spi/cluster/NodeInfo;)Lio/vertx/core/Future; (7)
(Lio/vertx/core/spi/cluster/NodeInfo;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.flatMap:(Ljava/util/function/Function;)Lio/vertx/core/Future;
14: 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$1(Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
5 6 2 clientOptions Lio/vertx/core/net/NetClientOptions;
11 16 1 promise Lio/vertx/core/Promise<Lio/vertx/core/spi/cluster/NodeInfo;>;
Exception table:
from to target type
1 3 8 any
4 7 8 any
8 9 8 any
synchronized void writeMessage(io.vertx.core.eventbus.impl.OutboundDeliveryContext<?>);
descriptor: (Lio/vertx/core/eventbus/impl/OutboundDeliveryContext;)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
getfield io.vertx.core.eventbus.impl.OutboundDeliveryContext.message:Lio/vertx/core/eventbus/impl/MessageImpl;
checkcast io.vertx.core.eventbus.impl.clustered.ClusteredMessage
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
getfield io.vertx.core.eventbus.impl.OutboundDeliveryContext.message:Lio/vertx/core/eventbus/impl/MessageImpl;
invokevirtual io.vertx.core.eventbus.impl.MessageImpl.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
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)V
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/impl/logging/Logger;
invokeinterface io.vertx.core.impl.logging.Logger.isDebugEnabled:()Z
ifeq 9
8: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/impl/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.remoteNodeId:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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;
invokeinterface io.vertx.core.impl.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 ctx Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;
2 5 2 data Lio/vertx/core/buffer/Buffer;
Signature: (Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;)V
MethodParameters:
Name Flags
ctx
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=4, 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/impl/VertxInternal;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
invokeinterface io.vertx.core.impl.VertxInternal.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/impl/VertxInternal;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.pingTimeoutID:J
invokeinterface io.vertx.core.impl.VertxInternal.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 10
6: goto 8
start local 3 7: StackMap locals: io.vertx.core.eventbus.impl.clustered.ConnectionHolder io.vertx.core.eventbus.impl.OutboundDeliveryContext
StackMap stack:
aload 3
aload 1
invokevirtual io.vertx.core.eventbus.impl.OutboundDeliveryContext.written:(Ljava/lang/Throwable;)V
end local 3 8: StackMap locals:
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.OutboundDeliveryContext
dup
astore 3
start local 3 9: ifnonnull 7
end local 3 10: StackMap locals:
StackMap stack:
aload 2
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 2
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
invokevirtual io.vertx.core.impl.CloseFuture.close:(Lio/vertx/core/Promise;)V
15: 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.remoteNodeId:Ljava/lang/String;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 18
16: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/impl/logging/Logger;
invokeinterface io.vertx.core.impl.logging.Logger.isDebugEnabled:()Z
ifeq 18
17: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/impl/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.remoteNodeId: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.debug:(Ljava/lang/Object;)V
18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/vertx/core/eventbus/impl/clustered/ConnectionHolder;
0 19 1 cause Ljava/lang/Throwable;
7 8 3 msg Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;
9 10 3 msg Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;
Exception table:
from to target type
5 11 12 any
12 13 12 any
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/impl/VertxInternal;
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$2(Lio/vertx/core/eventbus/EventBusOptions;Ljava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.impl.VertxInternal.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$4(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$5(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$6(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/impl/logging/Logger;
invokeinterface io.vertx.core.impl.logging.Logger.isDebugEnabled:()Z
ifeq 9
8: getstatic io.vertx.core.eventbus.impl.clustered.ConnectionHolder.log:Lio/vertx/core/impl/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.remoteNodeId: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.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.OutboundDeliveryContext
astore 2
start local 2 11: aload 2
getfield io.vertx.core.eventbus.impl.OutboundDeliveryContext.message:Lio/vertx/core/eventbus/impl/MessageImpl;
checkcast io.vertx.core.eventbus.impl.clustered.ClusteredMessage
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
getfield io.vertx.core.eventbus.impl.OutboundDeliveryContext.message:Lio/vertx/core/eventbus/impl/MessageImpl;
invokevirtual io.vertx.core.eventbus.impl.MessageImpl.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.OutboundDeliveryContext java.util.Iterator io.vertx.core.buffer.Buffer
StackMap stack:
aload 1
aload 4
aload 2
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)V
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 ctx Lio/vertx/core/eventbus/impl/OutboundDeliveryContext<*>;
12 15 4 data Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
socket
private io.vertx.core.Future lambda$0(io.vertx.core.spi.cluster.NodeInfo);
descriptor: (Lio/vertx/core/spi/cluster/NodeInfo;)Lio/vertx/core/Future;
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.client:Lio/vertx/core/net/NetClient;
aload 1
invokevirtual io.vertx.core.spi.cluster.NodeInfo.port:()I
aload 1
invokevirtual io.vertx.core.spi.cluster.NodeInfo.host:()Ljava/lang/String;
invokeinterface io.vertx.core.net.NetClient.connect:(ILjava/lang/String;)Lio/vertx/core/Future;
areturn
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 info Lio/vertx/core/spi/cluster/NodeInfo;
private void lambda$1(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/impl/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.remoteNodeId:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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;
invokeinterface io.vertx.core.impl.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 ar Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;
private void lambda$2(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=9, 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/impl/VertxInternal;
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$3(Ljava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.impl.VertxInternal.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.remoteNodeId:Ljava/lang/String;
ldc "__vertx_ping"
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;
invokespecial io.vertx.core.eventbus.impl.clustered.ClusteredMessage.<init>:(Ljava/lang/String;Ljava/lang/String;Lio/vertx/core/MultiMap;Ljava/lang/Object;Lio/vertx/core/eventbus/MessageCodec;ZLio/vertx/core/eventbus/impl/EventBusImpl;)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:(Ljava/lang/Object;)Lio/vertx/core/Future;
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$4(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$5(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$6(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/impl/VertxInternal;
aload 0
getfield io.vertx.core.eventbus.impl.clustered.ConnectionHolder.timeoutID:J
invokeinterface io.vertx.core.impl.VertxInternal.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$3(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/impl/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.remoteNodeId:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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;
invokeinterface io.vertx.core.impl.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