public class DefaultBaseState extends Object implements BaseState.Mutable
BaseState.MutableNO_COMMANDS| Constructor and Description |
|---|
DefaultBaseState() |
DefaultBaseState(boolean processCommands) |
| Modifier and Type | Method and Description |
|---|---|
BaseState.Mutable |
allEventsAppliedFor(Command.Id id) |
boolean |
allEventsPolled() |
BaseState.Mutable |
allEventsPolled(boolean newValue) |
BaseState.Mutable |
lastAppliedEvent(Event event) |
long |
lastAppliedEventTime() |
long |
lastCommandAllEventsApplied(int input) |
boolean |
processCommands() |
BaseState.Mutable |
processCommands(boolean newValue) |
public DefaultBaseState()
public DefaultBaseState(boolean processCommands)
public boolean processCommands()
processCommands in interface BaseStatepublic BaseState.Mutable processCommands(boolean newValue)
processCommands in interface BaseState.Mutablepublic boolean allEventsPolled()
allEventsPolled in interface BaseStatepublic BaseState.Mutable allEventsPolled(boolean newValue)
allEventsPolled in interface BaseState.Mutablepublic long lastCommandAllEventsApplied(int input)
lastCommandAllEventsApplied in interface BaseStatepublic BaseState.Mutable allEventsAppliedFor(Command.Id id)
allEventsAppliedFor in interface BaseState.Mutablepublic long lastAppliedEventTime()
lastAppliedEventTime in interface BaseStatepublic BaseState.Mutable lastAppliedEvent(Event event)
lastAppliedEvent in interface BaseState.MutableCopyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.