public void registerCollectionSizeGauge ( CollectionSizeGauge collectionSizeGauge ) { String name = createMetricName ( LocalTaskExecutorService . class , "queue-size" ) ; metrics . register ( name , collectionSizeGauge ) ; }
Calling this twice will not actually overwrite the gauge