2025-03-10 08:38:21 +01:00
|
|
|
package com.commafeed;
|
|
|
|
|
|
2026-07-05 10:18:30 +02:00
|
|
|
import com.codahale.metrics.MetricRegistry;
|
2026-07-29 20:36:03 +02:00
|
|
|
|
2025-03-10 08:38:21 +01:00
|
|
|
import jakarta.enterprise.inject.Produces;
|
|
|
|
|
import jakarta.inject.Singleton;
|
2026-07-29 20:36:03 +02:00
|
|
|
|
2026-07-05 10:18:30 +02:00
|
|
|
import java.time.InstantSource;
|
2025-03-10 08:38:21 +01:00
|
|
|
|
|
|
|
|
@Singleton
|
|
|
|
|
public class CommaFeedProducers {
|
|
|
|
|
|
2026-07-05 10:18:30 +02:00
|
|
|
@Produces
|
|
|
|
|
@Singleton
|
|
|
|
|
public InstantSource instantSource() {
|
|
|
|
|
return InstantSource.system();
|
|
|
|
|
}
|
2025-03-10 08:38:21 +01:00
|
|
|
|
2026-07-05 10:18:30 +02:00
|
|
|
@Produces
|
|
|
|
|
@Singleton
|
|
|
|
|
public MetricRegistry metricRegistry() {
|
|
|
|
|
return new MetricRegistry();
|
|
|
|
|
}
|
2025-03-10 08:38:21 +01:00
|
|
|
}
|