Type Alias EventBusFactorySettings<TAdapters>

EventBusFactorySettings<TAdapters>: {
    adapters: EventBusAdapters<TAdapters>;
    backoffPolicy?: BackoffPolicy | null;
    defaultAdapter?: NoInfer<TAdapters>;
    eventBus?: IGroupableEventBus<any>;
    retryAttempts?: number | null;
    retryPolicy?: RetryPolicy | null;
    serde: OneOrMore<IFlexibleSerde>;
    shouldRegisterErrors?: boolean;
    timeout?: TimeSpan | null;
}

IMPORT_PATH: "@daiso-tech/core/event-bus/implementations/derivables"

Type Parameters

  • TAdapters extends string = string

Type declaration

  • adapters: EventBusAdapters<TAdapters>
  • OptionalbackoffPolicy?: BackoffPolicy | null

    The default backof policy to use in the returned LazyPromise.

    {null}
    
  • OptionaldefaultAdapter?: NoInfer<TAdapters>
  • OptionaleventBus?: IGroupableEventBus<any>

    In order to listen to events of Cache class you must pass in IGroupableEventBus.

  • OptionalretryAttempts?: number | null

    The default retry attempt to use in the returned LazyPromise.

    {null}
    
  • OptionalretryPolicy?: RetryPolicy | null

    The default retry policy to use in the returned LazyPromise.

    {null}
    
  • serde: OneOrMore<IFlexibleSerde>

    You can pass one or more IFlexibleSerde that will be used to register all IGroupableEventBus related errors.

    {true}
    
  • OptionalshouldRegisterErrors?: boolean

    If set to true, all IGroupableEventBus related errors will be registered with the specified IFlexibleSerde during constructor initialization. This ensures that all IGroupableEventBus related errors will be serialized correctly.

    {true}
    
  • Optionaltimeout?: TimeSpan | null

    The default timeout to use in the returned LazyPromise.

    {null}