Class EventServiceImpl
java.lang.Object
org.j7m.middleware.examples.events.EventServiceImpl
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a safe invocation log snapshot.registerAndPing(EventCallback callback, String value) Registers a callback and immediately invokes it.
-
Constructor Details
-
EventServiceImpl
public EventServiceImpl()Creates an event service.
-
-
Method Details
-
registerAndPing
Registers a callback and immediately invokes it.- Specified by:
registerAndPingin interfaceEventService- Parameters:
callback- callback object to pass by referencevalue- value to send- Returns:
- service acknowledgement
-
invocationLog
-