Class InMemoryMessageStore.Builder

    • Method Detail

      • maximumCapacity

        public InMemoryMessageStore.Builder maximumCapacity​(int n)
        Sets in-memory message store maximum capacity. Once this capacity is reached, the oldest message in the store is replaced with the latest message.
        Parameters:
        n - message store capacity.
        Returns:
        this Builder instance.
        Throws:
        IllegalArgumentException - if n is ≤ zero.
      • build

        public InMemoryMessageStore build()
        Returns new InMemoryMessageStore based on this builder's settings.
        Returns:
        new in-memory message store instance.
        Throws:
        net.sf.eBus.util.ValidationException - if this builder's settings are incomplete or invalid.