Replies: 1 comment 1 reply
-
@scottf Could you help me ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello , I 'm writing a apm plugin , It use java agent technology . And I try to intercept
NatsConnectionWriter#sendMessageBatch
method .To get current correct server URL , I call
NatsConnection#getConnectedUrl
throughNatsConnectionWriter#connection
fieldBut I found , when
tryToConnect
, The library restartNatsConnectionWriter
first , then update server URL. like this:Maybe it's more reasonable that update currentServer first , then restart writer thread ?
Any suggestion for get real server uri when call
NatsConnectionWriter#sendMessageBatch
? if I get the url fromNatsConnectionWriter#sendMessageBatch
method argument (DataPort dataPort) , I have to use java reflect , Because SocketDataPort filed is privateBeta Was this translation helpful? Give feedback.
All reactions