StateT
- A revisioned object that updates to are coordinated with a StateSynchronizer
.public interface InitialUpdate<StateT extends Revisioned> extends Update<StateT>
Modifier and Type | Method and Description |
---|---|
default StateT |
applyTo(StateT oldState,
Revision newRevision)
Return an object of type StateT that is the same as oldState with this update applied to it.
|
StateT |
create(java.lang.String scopedStreamName,
Revision revision)
Returns an object of type StateT with the provided revision.
|
StateT create(java.lang.String scopedStreamName, Revision revision)
scopedStreamName
- The name of the stream that this state is associated with.revision
- The revision to usedefault StateT applyTo(StateT oldState, Revision newRevision)
Update
Revisioned.getRevision()
on the result should return newRevision.applyTo
in interface Update<StateT extends Revisioned>
oldState
- The state to which should be used as the basis for the new state.newRevision
- The revision for the new state.