@Override default DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options) { return DummyVertxMetrics.DummyDatagramMetrics.INSTANCE; }
public DispatchingDatagramSocketMetrics(List<? extends DatagramSocketMetrics> delegates) { super(delegates); }
@Override public DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options) { return createSubMetrics(v -> v.createMetrics(socket, options), d -> new DispatchingDatagramSocketMetrics(d)); }
@Override public DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options) { return new DatagramSocketMetricsImpl(counterService, gaugeService, properties.getDatagramSocket()); }
@Override public DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options) { DatagramSocketMetricsSupplier supplier = (DatagramSocketMetricsSupplier) metricSuppliers.get(DATAGRAM_SOCKET); return supplier != null ? new DatagramSocketMetricsImpl(supplier) : super.createMetrics(socket, options); }
@Override public DatagramSocketMetrics createMetrics(DatagramSocket socket, DatagramSocketOptions options) { return new DatagramSocketMetricsImpl(this, nameOf("datagram")); }