Class: GrpcForkSafety::NoopLifeCycle

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc_fork_safety/no_patch.rb

Instance Method Summary collapse

Constructor Details

#initializeNoopLifeCycle

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_enableObject



99
# File 'lib/grpc_fork_safety/no_patch.rb', line 99

def after_enable; end

#after_forkObject



95
# File 'lib/grpc_fork_safety/no_patch.rb', line 95

def after_fork; end

#before_disableObject



97
# File 'lib/grpc_fork_safety/no_patch.rb', line 97

def before_disable; end

#before_forkObject



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

Returns:

  • (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