Class DurableLocalCommandBusBuilder

    • Constructor Detail

      • DurableLocalCommandBusBuilder

        public DurableLocalCommandBusBuilder()
    • Method Detail

      • setDurableQueues

        public DurableLocalCommandBusBuilder setDurableQueues​(DurableQueues durableQueues)
        Set the underlying Durable Queues provider
        Parameters:
        durableQueues - the underlying Durable Queues provider
        Returns:
        this builder instance
      • setParallelSendAndDontWaitConsumers

        public DurableLocalCommandBusBuilder setParallelSendAndDontWaitConsumers​(int parallelSendAndDontWaitConsumers)
        Set how many parallel DurableQueues consumers should listen for messages added using CommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
        Defaults to 10
        Parameters:
        parallelSendAndDontWaitConsumers - How many parallel DurableQueues consumers should listen for messages added using CommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
        Returns:
        this builder instance
      • setSendAndDontWaitErrorHandler

        public DurableLocalCommandBusBuilder setSendAndDontWaitErrorHandler​(dk.cloudcreate.essentials.reactive.command.SendAndDontWaitErrorHandler sendAndDontWaitErrorHandler)
        Set the Exception handler that will handle errors that occur during CommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration). If this handler doesn't rethrow the exeption, then the message will not be retried by the underlying DurableQueues
        Parameters:
        sendAndDontWaitErrorHandler - The Exception handler that will handle errors that occur during CommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration). If this handler doesn't rethrow the exeption, then the message will not be retried by the underlying DurableQueues
        Returns:
        this builder instance
      • setInterceptors

        public DurableLocalCommandBusBuilder setInterceptors​(List<dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor> interceptors)
        Set all the CommandBusInterceptor's to use
        Parameters:
        interceptors - all the CommandBusInterceptor's to use
        Returns:
        this builder instance
      • setInterceptors

        public DurableLocalCommandBusBuilder setInterceptors​(dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor... interceptors)
        Set all the CommandBusInterceptor's to use
        Parameters:
        interceptors - all the CommandBusInterceptor's to use
        Returns:
        this builder instance
      • addInterceptors

        public DurableLocalCommandBusBuilder addInterceptors​(List<dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor> interceptors)
        Add additional CommandBusInterceptor's to use
        Parameters:
        interceptors - the additional CommandBusInterceptor's to use
        Returns:
        this builder instance
      • addInterceptors

        public DurableLocalCommandBusBuilder addInterceptors​(dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor... interceptors)
        Add additional CommandBusInterceptor's to use
        Parameters:
        interceptors - the additional CommandBusInterceptor's to use
        Returns:
        this builder instance