
com.opencredo.concursus.domain.events.state.StateBuilder Maven / Gradle / Ivy
The newest version!
package com.opencredo.concursus.domain.events.state;
import com.opencredo.concursus.domain.events.channels.EventOutChannel;
import java.util.Optional;
import java.util.function.Supplier;
/**
* An {@link EventOutChannel} which receives events and uses them to build a representation of an aggregate's state.
* @param The type of the state object to build.
*/
public interface StateBuilder extends EventOutChannel, Supplier> {
/**
* Get the constructed state instance, if present.
* @return The constructed state instance, if present.
*/
@Override
public Optional get();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy