Interface EventConsumerRegistry<T>

    • Method Detail

      • createEventConsumer

        CircularEventConsumer<T> createEventConsumer​(java.lang.String id,
                                                     int bufferSize)
        Creates a new EventConsumer and stores the instance in the registry.
        Parameters:
        id - the id of the EventConsumer
        bufferSize - the size of the EventConsumer
        Returns:
        a new EventConsumer
      • getEventConsumer

        @Nullable
        CircularEventConsumer<T> getEventConsumer​(java.lang.String id)
        Returns the EventConsumer to which the specified id is mapped.
        Parameters:
        id - the id of the EventConsumer
        Returns:
        the EventConsumer to which the specified id is mapped
      • getAllEventConsumer

        io.vavr.collection.Seq<CircularEventConsumer<T>> getAllEventConsumer()
        Returns all EventConsumer instances.
        Returns:
        all EventConsumer instances