Skip to content

Commit 2fb8391

Browse files
committed
Add interface StateRehydrator
1 parent 456d5d3 commit 2fb8391

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package io.loom.eventsourcing;
2+
3+
import java.util.Optional;
4+
import java.util.UUID;
5+
import java.util.concurrent.Future;
6+
7+
public interface StateRehydrator<T> {
8+
Future<Optional<T>> tryRehydrateState(UUID streamId);
9+
}

0 commit comments

Comments
 (0)