public static BulkheadMetrics ofBulkheadRegistry(String prefix, BulkheadRegistry bulkheadRegistry) {
        return new BulkheadMetrics(prefix, bulkheadRegistry.getAllBulkheads());
    }
public static BulkheadMetrics ofBulkheadRegistry ( String prefix , BulkheadRegistry bulkheadRegistry ) { return new BulkheadMetrics ( prefix , bulkheadRegistry . getAllBulkheads ( ) ) ; }
Creates a new instance BulkheadMetrics {@link BulkheadMetrics} with specified metrics names prefix and
a {@link BulkheadRegistry} as a source.

@param prefix           the prefix of metrics names
@param bulkheadRegistry the registry of bulkheads