Class: Hyperion::AsyncPg::ForkSafe::Registration

Inherits:
Struct
  • Object
show all
Defined in:
lib/hyperion/async_pg/fork_safe.rb

Overview

Internal record of a registered pool plus its fork-time options. Keeping it a tiny Struct (not a tuple) keeps callers honest and makes the prefill flag self-documenting in stack traces.

Instance Attribute Summary collapse

Instance Attribute Details

#poolObject

Returns the value of attribute pool

Returns:

  • (Object)

    the current value of pool



65
66
67
# File 'lib/hyperion/async_pg/fork_safe.rb', line 65

def pool
  @pool
end

#prefill_in_childObject

Returns the value of attribute prefill_in_child

Returns:

  • (Object)

    the current value of prefill_in_child



65
66
67
# File 'lib/hyperion/async_pg/fork_safe.rb', line 65

def prefill_in_child
  @prefill_in_child
end