Class: GrpcForkSafety::NoopLifeCycle
- Inherits:
-
Object
- Object
- GrpcForkSafety::NoopLifeCycle
- Defined in:
- lib/grpc_fork_safety/no_patch.rb
Instance Method Summary collapse
- #after_enable ⇒ Object
- #after_fork ⇒ Object
- #before_disable ⇒ Object
- #before_fork ⇒ Object
-
#initialize ⇒ NoopLifeCycle
constructor
A new instance of NoopLifeCycle.
- #keep_disabled! ⇒ Object
- #keep_disabled? ⇒ Boolean
- #reenable! ⇒ Object
Constructor Details
#initialize ⇒ NoopLifeCycle
Returns a new instance of NoopLifeCycle.
77 78 79 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 77 def initialize @keep_disabled = false end |
Instance Method Details
#after_enable ⇒ Object
99 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 99 def after_enable; end |
#after_fork ⇒ Object
95 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 95 def after_fork; end |
#before_disable ⇒ Object
97 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 97 def before_disable; end |
#before_fork ⇒ Object
93 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 93 def before_fork; end |
#keep_disabled! ⇒ Object
81 82 83 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 81 def keep_disabled! @keep_disabled = true end |
#keep_disabled? ⇒ Boolean
85 86 87 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 85 def keep_disabled? @keep_disabled end |
#reenable! ⇒ Object
89 90 91 |
# File 'lib/grpc_fork_safety/no_patch.rb', line 89 def reenable! @keep_disabled = false end |