Get the current number of unprocessed messages in NotificationQueue.

Synopsis

Declared in <folly/io/async/AsyncServerSocket.h>

int64_t
getNumPendingMessagesInQueue() const;

Description

This method must be invoked from the AsyncServerSocket's primary EventBase thread. Use EventBase::runInEventBaseThread() to schedule the operation in the correct EventBase if your code is not in the server socket's primary EventBase.

Return Value

The current number of unprocessed messages in the queue.

Created with MrDocs