Skip to content

How to get queue size? #153

@ray-krow-verys

Description

@ray-krow-verys

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions