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



4
5
6
# File 'lib/raft.rb', line 4

def async_provider
  @async_provider
end

#election_splayObject

Returns the value of attribute election_splay

Returns:

  • (Object)

    the current value of election_splay



4
5
6
# File 'lib/raft.rb', line 4

def election_splay
  @election_splay
end

#election_timeoutObject

Returns the value of attribute election_timeout

Returns:

  • (Object)

    the current value of election_timeout



4
5
6
# File 'lib/raft.rb', line 4

def election_timeout
  @election_timeout
end

#heartbeat_intervalObject

Returns the value of attribute heartbeat_interval

Returns:

  • (Object)

    the current value of heartbeat_interval



4
5
6
# File 'lib/raft.rb', line 4

def heartbeat_interval
  @heartbeat_interval
end

#rpc_providerObject

Returns the value of attribute rpc_provider

Returns:

  • (Object)

    the current value of rpc_provider



4
5
6
# File 'lib/raft.rb', line 4

def rpc_provider
  @rpc_provider
end

#update_intervalObject

Returns the value of attribute update_interval

Returns:

  • (Object)

    the current value of update_interval



4
5
6
# File 'lib/raft.rb', line 4

def update_interval
  @update_interval
end