Raft Consensus Algorithm
Preparing search index...
@maboke123/raft-core
ApplicationStateMachine
Interface ApplicationStateMachine
interface
ApplicationStateMachine
{
apply
(
command
:
Command
)
:
Promise
<
any
>
;
getState
()
:
any
;
installSnapshot
(
data
:
Buffer
)
:
Promise
<
void
>
;
takeSnapshot
()
:
Promise
<
Buffer
<
ArrayBufferLike
>
>
;
}
Index
Methods
apply
get
State
install
Snapshot
take
Snapshot
Methods
apply
apply
(
command
:
Command
)
:
Promise
<
any
>
Parameters
command
:
Command
Returns
Promise
<
any
>
get
State
getState
()
:
any
Returns
any
install
Snapshot
installSnapshot
(
data
:
Buffer
)
:
Promise
<
void
>
Parameters
data
:
Buffer
Returns
Promise
<
void
>
take
Snapshot
takeSnapshot
()
:
Promise
<
Buffer
<
ArrayBufferLike
>
>
Returns
Promise
<
Buffer
<
ArrayBufferLike
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
apply
get
State
install
Snapshot
take
Snapshot
Raft Consensus Algorithm
Loading...