com.opencredo.concourse.domain.state.StateRepository Maven / Gradle / Ivy
package com.opencredo.concourse.domain.state;
import java.time.Instant;
import java.util.*;
public interface StateRepository {
Optional getState(UUID aggregateId, Instant upTo);
default Optional getState(UUID aggregateId) {
return getState(aggregateId, Instant.MAX);
}
Map getStates(Collection aggregateIds, Instant upTo);
default Map getStates(Collection aggregateIds) {
return getStates(aggregateIds, Instant.MAX);
}
default Map getStates(UUID...aggregateIds) {
return getStates(Arrays.asList(aggregateIds));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy