static DoubleDistributionSummary get ( Registry registry , Id id ) { DoubleDistributionSummary instance = INSTANCES . get ( id ) ; if ( instance == null ) { final Clock c = registry . clock ( ) ; DoubleDistributionSummary tmp = new DoubleDistributionSummary ( c , id , RESET_FREQ ) ; instance = INSTANCES . putIfAbsent ( id , tmp ) ; if ( instance == null ) { instance = tmp ; registry . register ( tmp ) ; } } return instance ; }
Get or create a double distribution summary with the specified id .