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
My understanding is that the java-nats library queues up messages that the server sends and dispatches them to the provided callback consumers as fast as it can. But, there is still a queue that messages can store up in.
How can I get the size of this queue? I need to know how far behind my client is for scaling needs.
Something like: int queueSize = nc.getPendingQueueSize();
The text was updated successfully, but these errors were encountered:
This is available from the subscription object itself. For instance sub.getPendingMsgs(). There is also pending bytes, the max that were pending, etc..
My understanding is that the java-nats library queues up messages that the server sends and dispatches them to the provided callback consumers as fast as it can. But, there is still a queue that messages can store up in.
How can I get the size of this queue? I need to know how far behind my client is for scaling needs.
Something like:
int queueSize = nc.getPendingQueueSize();
The text was updated successfully, but these errors were encountered: