@ApplicationScoped public class MetricsEventObserver extends Object
| Constructor and Description |
|---|
MetricsEventObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Object init) |
void |
processAttemptFailed(ProcessingFailedEvent e) |
void |
processBlocked(ProcessingBlockedEvent e) |
void |
processDeleted(ProcessingDeletedEvent e) |
void |
processSuccess(ProcessingSuccessEvent e) |
void |
processUnblocked(ProcessingUnblockedEvent e) |
void |
published(PublishingEvent e) |
public void init(@Observes @Initialized(value=javax.enterprise.context.ApplicationScoped.class)
Object init)
@Counted(name="com.github.jonasrutishauser.transaction.event.failedattempts",
description="counter for failed attempts of processing the events",
absolute=true)
public void processAttemptFailed(@Observes
ProcessingFailedEvent e)
@Counted(name="com.github.jonasrutishauser.transaction.event.success",
description="counter for successfully processed events",
absolute=true)
public void processSuccess(@Observes
ProcessingSuccessEvent e)
@Counted(name="com.github.jonasrutishauser.transaction.event.blocked",
description="counter for blocked events (max attempts reached)",
absolute=true)
public void processBlocked(@Observes
ProcessingBlockedEvent e)
@Counted(name="com.github.jonasrutishauser.transaction.event.unblocked",
description="counter for unblocked events",
absolute=true)
public void processUnblocked(@Observes(during=AFTER_SUCCESS)
ProcessingUnblockedEvent e)
@Counted(name="com.github.jonasrutishauser.transaction.event.deleted",
description="counter for deleted events",
absolute=true)
public void processDeleted(@Observes(during=AFTER_SUCCESS)
ProcessingDeletedEvent e)
@Counted(name="com.github.jonasrutishauser.transaction.event.published",
description="counter for published events",
absolute=true)
public void published(@Observes(during=AFTER_SUCCESS)
PublishingEvent e)
Copyright © 2021. All rights reserved.