Class DispatcherBuilder

java.lang.Object
io.camunda.zeebe.dispatcher.DispatcherBuilder

public final class DispatcherBuilder extends Object
Builder for a Dispatcher
  • Constructor Details

    • DispatcherBuilder

      public DispatcherBuilder(String dispatcherName)
  • Method Details

    • name

      public DispatcherBuilder name(String name)
    • bufferSize

      public DispatcherBuilder bufferSize(int bufferSize)
      The number of bytes the buffer is be able to contain. Represents the size of the data section. Additional space will be allocated for the meta-data sections
    • actorSchedulingService

      public DispatcherBuilder actorSchedulingService(ActorSchedulingService actorSchedulingService)
    • maxFragmentLength

      public DispatcherBuilder maxFragmentLength(int maxFragmentLength)
      The max length of the data section of a frame
    • initialPosition

      public DispatcherBuilder initialPosition(long initialPosition)
    • subscriptions

      public DispatcherBuilder subscriptions(String... subscriptionNames)
      Predefined subscriptions which will be created on startup in the order as they are declared.
    • build

      public Dispatcher build()