Interface GatewayEventConsumer

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface GatewayEventConsumer
    The gateway event consumer is the main entry point of the event gateway microservice. Its responsibility is to read the events from the event source in ACS, transform them to standard RepoEvent objects and route them to the EventRouter component.
    See Also:
    EventRouter, RepoEvent
    • Method Detail

      • startConsumingEvents

        void startConsumingEvents()
        Start the consumption of events from the ACS event source. The implementation of this method should be idempotent, so that several invocations of it does not disturb the normal consumption of events from the source.

        The event gateway microservice invokes this method at the end of the microservice startup process, once the rest of services are up and ready.