Class DefaultNewRelicInsightsService
java.lang.Object
com.agorapulse.micronaut.newrelic.DefaultNewRelicInsightsService
- All Implemented Interfaces:
NewRelicInsightsService
@Primary
@Singleton
@Requires(beans=NewRelicInsightsClient.class)
@Replaces(FallbackNewRelicInsightsService.class)
public class DefaultNewRelicInsightsService
extends Object
implements NewRelicInsightsService
Default NewRelicInsightsService, sends events to the New Relic API in real time, with a blocking request.
This implementation is the one to use in Lambdas, since they aren't running the Java agent that would be able to
send the events asynchronously.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNewRelicInsightsService(NewRelicInsightsClient client, EventPayloadExtractor extractor) -
Method Summary
Modifier and TypeMethodDescription<E> voidunsafeCreateEvents(@NonNull @Valid Collection<E> events) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.agorapulse.micronaut.newrelic.NewRelicInsightsService
createEvent, createEvents, unsafeCreateEvent
-
Constructor Details
-
DefaultNewRelicInsightsService
public DefaultNewRelicInsightsService(NewRelicInsightsClient client, EventPayloadExtractor extractor)
-
-
Method Details
-
unsafeCreateEvents
- Specified by:
unsafeCreateEventsin interfaceNewRelicInsightsService
-