zam_event_bus library

Classes

Application
Application is the class that encompasses user interface and use cases.
AsyncEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a future
  • Resolves the future
  • Publishes the message
  • BasicApplication
    Holds user interface and use cases.
    BasicUserInterface
    A generalized utility class to configure and run user interface.
    Composer
    Utility class to compose modules, build and run app.
    ComposerConfig
    Configuration for composing the application.
    Environment
    EventBus
    EventBus is a stream based solution to remove dependencies between elements.
    EventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event based on the strategy provided.
    ListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events.
    ProdComposerConfig
    Prod Configuration
    ProdEnvironment
    ReactiveEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a stream
  • Listens to the stream
  • Publishes the message as the stream emits
  • SavingAsyncEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a future
  • Resolves the future
  • Publishes the message
  • Saves the message to store
  • SavingEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event and saves it to store.
    SavingListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events and saves them to store.
    SavingReactiveEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a stream
  • Listens to the stream
  • Publishes the message as the stream emits
  • Saves the message to store
  • Store
    A key value store that saves objects by Type
    TestComposerConfig
    Test Configuration
    TestEnvironment
    UseCaseEvent
    UseCaseFailedEvent
    UseCaseSucceededEvent<DATA extends Object>
    UserInterface
    A generalized utility class to configure and run user interface.
    WrappedEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event based on the strategy provided.
    WrappedListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events.
    WrappedSavingEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event and saves it to store.
    WrappedSavingListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events and saves them to store.

    Exceptions / Errors

    ObjectNotFoundInStoreException
    Exception that is thrown when a requested object is not found in store.