Class EventServiceImpl

java.lang.Object
org.j7m.middleware.examples.events.EventServiceImpl
All Implemented Interfaces:
EventService

public final class EventServiceImpl extends Object implements EventService
Simple event service implementation for examples.

The class is not a production event bus. It records safe audit-style strings so tests and demos can prove that a callback invocation occurred.

  • Constructor Details

    • EventServiceImpl

      public EventServiceImpl()
      Creates an event service.
  • Method Details

    • registerAndPing

      public String registerAndPing(EventCallback callback, String value)
      Registers a callback and immediately invokes it.
      Specified by:
      registerAndPing in interface EventService
      Parameters:
      callback - callback object to pass by reference
      value - value to send
      Returns:
      service acknowledgement
    • invocationLog

      public List<String> invocationLog()
      Returns a safe invocation log snapshot.
      Returns:
      immutable invocation log