Class ProducerBenchmark

    • Constructor Detail

      • ProducerBenchmark

        public ProducerBenchmark​(javax.jms.ConnectionFactory factory,
                                 MicrosTimeProvider timeProvider,
                                 io.netty.channel.EventLoopGroup loopGroup,
                                 int producers,
                                 long messageCount,
                                 boolean sharedConnections,
                                 String group,
                                 long ttl,
                                 int messageSize,
                                 javax.jms.Destination[] destinations,
                                 boolean persistent,
                                 long maxPending,
                                 long transactionCapacity,
                                 Long messageRate,
                                 boolean enableMessageID,
                                 boolean enableTimestamp)
    • Method Detail

      • expectedTotalMessageCountToReceive

        public long expectedTotalMessageCountToReceive​(int sharedSubscriptions,
                                                       int consumersPerDestination)
      • expectedTotalMessageCountToReceive

        public static long expectedTotalMessageCountToReceive​(Stream<ObjLongPair<javax.jms.Destination>> messageSentPerDestination,
                                                              int sharedSubscriptions,
                                                              int consumersPerDestination)
      • asyncClose

        public CompletionStage<?> asyncClose()
        After this, now new messages are sent, but there still be some to be completed: the return value can be used to await completions to arrive.