@RequestScoped public class EventLogger extends Object
| Constructor and Description |
|---|
EventLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleSuccessfulEvents(UserEvent userEvent) |
Future<Void> |
logEvent(String token,
@NotNull UserEvent event) |
@Counted(name="Events logged",
absolute=true,
monotonic=true)
@Asynchronous
@Retry(delay=10L,
delayUnit=SECONDS,
maxRetries=5)
@Fallback(value=EventLoggerFallbackHandler.class)
public Future<Void> logEvent(String token,
@NotNull
@NotNull UserEvent event)
public void handleSuccessfulEvents(@Observes
UserEvent userEvent)
Copyright © 2019. All rights reserved.