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#sendMessageBatchmethod .To get current correct server URL , I call
NatsConnection#getConnectedUrlthroughNatsConnectionWriter#connectionfieldBut I found , when
tryToConnect, The library restartNatsConnectionWriterfirst , 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#sendMessageBatchmethod argument (DataPort dataPort) , I have to use java reflect , Because SocketDataPort filed is privateBeta Was this translation helpful? Give feedback.
All reactions