@Test public void testPostEvent() { new AuditLogListenerImpl(Mockito.mock(EventLog.class), 2, 4, Mockito.mock(AuditLogRepository.class)).postEvent(new SimpleEvent("SimpleEvent")); }
@Override public void postEvent(EventLogEvent event) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope(createFromEvent(event), repository); LOGGER.debug("posting auditLogEntryEnvelope: {}", auditLogEntryEnvelope); threadPoolExecutor.submit(auditLogEntryEnvelope); LOGGER.debug("posted auditLogEntryEnvelope: {}", auditLogEntryEnvelope); }
AuditLogListenerImpl implements EventLogListener { @Override public void postEvent(EventLogEvent event) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope(createFromEvent(event), repository); LOGGER.debug("posting auditLogEntryEnvelope: {}", auditLogEntryEnvelope); threadPoolExecutor.submit(auditLogEntryEnvelope); LOGGER.debug("posted auditLogEntryEnvelope: {}", auditLogEntryEnvelope); } }
AuditLogListenerImpl implements EventLogListener { @Override public void postEvent(EventLogEvent event) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope(createFromEvent(event), repository); LOGGER.debug("posting auditLogEntryEnvelope: {}", auditLogEntryEnvelope); threadPoolExecutor.submit(auditLogEntryEnvelope); LOGGER.debug("posted auditLogEntryEnvelope: {}", auditLogEntryEnvelope); } @Inject  AuditLogListenerImpl(final EventLog eventLog,
                                final @Named(AUDITLOG_THREADPOOLSIZE_CORE) int threadPoolSizeCore,
                                final @Named(AUDITLOG_THREADPOOLSIZE_MAX) int threadPoolSizeMax,
                                final AuditLogRepository repository); }
AuditLogListenerImpl implements EventLogListener { @Override public void postEvent(EventLogEvent event) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope(createFromEvent(event), repository); LOGGER.debug("posting auditLogEntryEnvelope: {}", auditLogEntryEnvelope); threadPoolExecutor.submit(auditLogEntryEnvelope); LOGGER.debug("posted auditLogEntryEnvelope: {}", auditLogEntryEnvelope); } @Inject  AuditLogListenerImpl(final EventLog eventLog,
                                final @Named(AUDITLOG_THREADPOOLSIZE_CORE) int threadPoolSizeCore,
                                final @Named(AUDITLOG_THREADPOOLSIZE_MAX) int threadPoolSizeMax,
                                final AuditLogRepository repository); @Override void postEvent(EventLogEvent event); }
AuditLogListenerImpl implements EventLogListener { @Override public void postEvent(EventLogEvent event) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope(createFromEvent(event), repository); LOGGER.debug("posting auditLogEntryEnvelope: {}", auditLogEntryEnvelope); threadPoolExecutor.submit(auditLogEntryEnvelope); LOGGER.debug("posted auditLogEntryEnvelope: {}", auditLogEntryEnvelope); } @Inject  AuditLogListenerImpl(final EventLog eventLog,
                                final @Named(AUDITLOG_THREADPOOLSIZE_CORE) int threadPoolSizeCore,
                                final @Named(AUDITLOG_THREADPOOLSIZE_MAX) int threadPoolSizeMax,
                                final AuditLogRepository repository); @Override void postEvent(EventLogEvent event);  }