miniraft
.
state
.
PersistentState
NotReally
Related Doc:
package PersistentState
class
NotReally
[
T
]
extends
PersistentState
[
T
]
We're not really perisistent. Shhh ... don't tell!
Linear Supertypes
PersistentState
[
T
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
NotReally
PersistentState
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
NotReally
(
initialTerm:
Term
,
initialVote:
Option
[
NodeId
]
,
applyToStateMachine: (
LogEntry
[
T
]) ⇒
Unit
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
append
(
entries:
List
[
LogEntry
[
T
]]
)
:
NotReally
[
T
]
Definition Classes
NotReally
→
PersistentState
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
commit
(
at:
LogIndex
)
:
PersistentState
[
T
]
Definition Classes
NotReally
→
PersistentState
def
currentTerm
:
Term
Definition Classes
NotReally
→
PersistentState
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
other:
Any
)
:
Boolean
Definition Classes
PersistentState
→ AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
PersistentState
→ AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
log
:
InMemoryLog
[
T
]
Definition Classes
NotReally
→
PersistentState
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
var
term
:
Term
def
toString
()
:
String
Definition Classes
PersistentState
→ AnyRef → Any
var
vote
:
Option
[
NodeId
]
def
voteFor
(
newTerm:
Term
,
leader:
Option
[
NodeId
]
)
:
NotReally
[
T
]
Definition Classes
NotReally
→
PersistentState
def
votedFor
:
Option
[
NodeId
]
Definition Classes
NotReally
→
PersistentState
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
PersistentState
[
T
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
We're not really perisistent. Shhh ... don't tell!