def stats
      {
        "alias"           => @alias,
        "identity"        => @identity,
        "status"          => @status.to_s,
        "disconnect last" => @disconnect_stats.last,
        "disconnects"     => RightSupport::Stats.nil_if_zero(@disconnect_stats.total),
        "failure last"    => @failure_stats.last,
        "failures"        => RightSupport::Stats.nil_if_zero(@failure_stats.total),
        "retries"         => RightSupport::Stats.nil_if_zero(@retries)
      }
    end
def stats
      {
        "alias"           => @alias,
        "identity"        => @identity,
        "status"          => @status.to_s,
        "disconnect last" => @disconnect_stats.last,
        "disconnects"     => RightSupport::Stats.nil_if_zero(@disconnect_stats.total),
        "failure last"    => @failure_stats.last,
        "failures"        => RightSupport::Stats.nil_if_zero(@failure_stats.total),
        "retries"         => RightSupport::Stats.nil_if_zero(@retries)
      }
    end
Get broker client statistics

 === Return
 (Hash):: Broker client stats with keys
  "alias"(String):: Broker alias
  "identity"(String):: Broker identity
  "status"(Status):: Status of connection
  "disconnect last"(Hash|nil):: Last disconnect information with key "elapsed", or nil if none
  "disconnects"(Integer|nil):: Number of times lost connection, or nil if none
  "failure last"(Hash|nil):: Last connect failure information with key "elapsed", or nil if none
  "failures"(Integer|nil):: Number of failed attempts to connect to broker, or nil if none
  "retries"(Integer|nil):: Number of connect retries, or nil if none