def stats(reset = false)
      stats = {
        "dispatched cache"  => (@dispatched_cache.stats if @dispatched_cache),
        "dispatch failures" => @dispatch_failure_stats.all,
        "rejects"           => @reject_stats.all,
        "requests"          => @request_stats.all
      }
      reset_stats if reset
      stats
    end
def stats(reset = false)
      stats = {
        "dispatched cache"  => (@dispatched_cache.stats if @dispatched_cache),
        "dispatch failures" => @dispatch_failure_stats.all,
        "rejects"           => @reject_stats.all,
        "requests"          => @request_stats.all
      }
      reset_stats if reset
      stats
    end
Get dispatcher statistics

 === Parameters
 reset(Boolean):: Whether to reset the statistics after getting the current ones

 === Return
 stats(Hash):: Current statistics:
   "dispatched cache"(Hash|nil):: Number of dispatched requests cached and age of youngest and oldest,
     or nil if empty
   "dispatch failures"(Hash|nil):: Dispatch failure activity stats with keys "total", "percent", "last", and "rate"
     with percentage breakdown per failure type, or nil if none
   "rejects"(Hash|nil):: Request reject activity stats with keys "total", "percent", "last", and "rate"
     with percentage breakdown per reason ("duplicate (<method>)", "retry duplicate (<method>)", or
     "stale (<method>)"), or nil if none
   "requests"(Hash|nil):: Request activity stats with keys "total", "percent", "last", and "rate"
     with percentage breakdown per request type, or nil if none