You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support an asynchronous 1:N request call allows the user to supply their own MessageHandler callback to handle responses. Something along the lines of:
request(String subject, byte[] data, long timeout, TimeUnit unit, int maxReplies, MessageHandler cb)
request(String subject, byte[] data, int maxReplies, MessageHandler cb)
request(String subject, byte[] data, long timeout, TimeUnit unit, MessageHandler cb)
Thought will need to be given to managing the life of the subscription, probably using a ScheduledExecutorService to terminate the subscription once the timeout is reached.
Thought should also be given to whether this is just provided as example code.
The text was updated successfully, but these errors were encountered:
Support an asynchronous 1:N request call allows the user to supply their own
MessageHandler
callback to handle responses. Something along the lines of:Thought will need to be given to managing the life of the subscription, probably using a
ScheduledExecutorService
to terminate the subscription once the timeout is reached.Thought should also be given to whether this is just provided as example code.
The text was updated successfully, but these errors were encountered: