use of org.apache.ignite.internal.processors.cache.persistence.CheckpointState in project ignite by apache.
the class CheckpointProgressImpl method transitTo.
/**
* Changing checkpoint state if order of state is correct.
*
* @param newState New checkpoint state.
*/
@Override
public void transitTo(@NotNull CheckpointState newState) {
CheckpointState state = this.state.get();
if (state.ordinal() < newState.ordinal()) {
this.state.compareAndSet(state, newState);
doFinishFuturesWhichLessOrEqualTo(newState);
}
}
Aggregations