Class: Raft::AppendEntriesRequest

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

Instance Attribute Summary collapse

Instance Attribute Details

#commit_indexObject

Returns the value of attribute commit_index

Returns:

  • (Object)

    the current value of commit_index



36
37
38
# File 'lib/raft.rb', line 36

def commit_index
  @commit_index
end

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



36
37
38
# File 'lib/raft.rb', line 36

def entries
  @entries
end

#leader_idObject

Returns the value of attribute leader_id

Returns:

  • (Object)

    the current value of leader_id



36
37
38
# File 'lib/raft.rb', line 36

def leader_id
  @leader_id
end

#prev_log_indexObject

Returns the value of attribute prev_log_index

Returns:

  • (Object)

    the current value of prev_log_index



36
37
38
# File 'lib/raft.rb', line 36

def prev_log_index
  @prev_log_index
end

#prev_log_termObject

Returns the value of attribute prev_log_term

Returns:

  • (Object)

    the current value of prev_log_term



36
37
38
# File 'lib/raft.rb', line 36

def prev_log_term
  @prev_log_term
end

#termObject

Returns the value of attribute term

Returns:

  • (Object)

    the current value of term



36
37
38
# File 'lib/raft.rb', line 36

def term
  @term
end