Class: Raft::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/raft.rb

Instance Attribute Summary collapse

Instance Attribute Details

#async_providerObject

Returns the value of attribute async_provider

Returns:

  • (Object)

    the current value of async_provider



2
3
4
# File 'lib/raft.rb', line 2

def async_provider
  @async_provider
end

#election_timeoutObject

Returns the value of attribute election_timeout

Returns:

  • (Object)

    the current value of election_timeout



2
3
4
# File 'lib/raft.rb', line 2

def election_timeout
  @election_timeout
end

#heartbeat_intervalObject

Returns the value of attribute heartbeat_interval

Returns:

  • (Object)

    the current value of heartbeat_interval



2
3
4
# File 'lib/raft.rb', line 2

def heartbeat_interval
  @heartbeat_interval
end

#rpc_providerObject

Returns the value of attribute rpc_provider

Returns:

  • (Object)

    the current value of rpc_provider



2
3
4
# File 'lib/raft.rb', line 2

def rpc_provider
  @rpc_provider
end

#update_intervalObject

Returns the value of attribute update_interval

Returns:

  • (Object)

    the current value of update_interval



2
3
4
# File 'lib/raft.rb', line 2

def update_interval
  @update_interval
end