Class Player


  • public class Player
    extends Object
    Replays requests from a request log.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Constructor Detail

      • Player

        public Player()
    • Method Detail

      • setInputLog

        public Player setInputLog​(com.google.common.collect.FluentIterable<Exchange> inputLog)
      • getInputLog

        public com.google.common.collect.FluentIterable<Exchange> getInputLog()
      • isResetElapsedTime

        public boolean isResetElapsedTime()
      • setResetElapsedTime

        public void setResetElapsedTime​(boolean resetElapsedTime)
      • setOutputCollector

        public Player setOutputCollector​(Collector collector)
      • setOutputCollector

        public Player setOutputCollector​(String urlPrefix,
                                         String sockPath,
                                         String eventBusAddress)
      • setOutputCollector

        public Player setOutputCollector​(String urlPrefix,
                                         String sockPath,
                                         String eventBusAddress,
                                         com.google.common.base.Predicate<? super Exchange> outputFilter)
      • setTimingFunction

        public Player setTimingFunction​(com.google.common.base.Function<Long,​Long> timingFunction)
      • setGracePeriod

        public Player setGracePeriod​(long gracePeriod)
        The time (ms) at the end of the scenario to wait before closing the collector. This is needed to collect the last log events. Defaults to 200 ms.
        Parameters:
        gracePeriod - gracePeriod
        Returns:
        Player