@Monitor(name = "batcherQueueSize", type = DataSourceType.GAUGE)
    public int getSize() {
        if (queue != null) {
            return queue.size();
        } else {
            return 0;
        }
    }
@ Monitor ( name = "batcherQueueSize" , type = DataSourceType . GAUGE ) public int getSize ( ) { if ( queue != null ) { return queue . size ( ) ; } else { return 0 ; } }
The size of the the queue in which the messages are batches

@return- size of the queue