Skip to content

Commit cbec775

Browse files
author
Vlad Ionescu
committed
saving server_properties field in AMQConnection
1 parent 282acea commit cbec775

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public void ensureIsOpen()
145145
/** Hosts retrieved from the connection.open-ok */
146146
public Address[] _knownHosts;
147147

148+
/** Saved server properties field from connection.start */
149+
public Map<String, Object> _serverProperties;
150+
148151
/** {@inheritDoc} */
149152
public String getHost() {
150153
return _frameHandler.getHost();
@@ -234,6 +237,8 @@ public void start(boolean insist)
234237
try {
235238
AMQP.Connection.Start connStart =
236239
(AMQP.Connection.Start) connStartBlocker.getReply().getMethod();
240+
241+
_serverProperties = connStart.getServerProperties();
237242

238243
Version serverVersion =
239244
new Version(connStart.getVersionMajor(),

0 commit comments

Comments
 (0)