Class: Neo4j::Driver::Internal::Metrics::ConnectionPoolMetrics

Inherits:
Struct
  • Object
show all
Defined in:
lib/neo4j/driver/internal/metrics.rb

Overview

Per-server-address snapshot. address is a Routing::ServerAddress (responds to #host/#port so the testkit handler can match it). #id is the "host:port" string form, the forward-compatible duck-typed key DECISIONS.md (2026-06-05) describes for a future metrics contract.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



17
18
19
# File 'lib/neo4j/driver/internal/metrics.rb', line 17

def address
  @address
end

#idleObject

Returns the value of attribute idle

Returns:

  • (Object)

    the current value of idle



17
18
19
# File 'lib/neo4j/driver/internal/metrics.rb', line 17

def idle
  @idle
end

#in_useObject

Returns the value of attribute in_use

Returns:

  • (Object)

    the current value of in_use



17
18
19
# File 'lib/neo4j/driver/internal/metrics.rb', line 17

def in_use
  @in_use
end

Instance Method Details

#idObject



18
# File 'lib/neo4j/driver/internal/metrics.rb', line 18

def id = address.to_s