public interface UnresolvedTransitionsService
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> |
delete(java.lang.String key)
Given a state draft key, this methods deletes the matching state draft from persistence.
|
java.util.concurrent.CompletionStage<java.util.Set<WaitingToBeResolvedTransitions>> |
fetch(java.util.Set<java.lang.String> keys)
Given state draft keys, this method fetches the persisted drafts waiting to be resolved.
|
java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> |
save(WaitingToBeResolvedTransitions draft)
Persists a state draft that is not ready to be resolved yet.
|
@Nonnull java.util.concurrent.CompletionStage<java.util.Set<WaitingToBeResolvedTransitions>> fetch(@Nonnull java.util.Set<java.lang.String> keys)
Set will be returned in the returned future.keys - the keys of the persisted state drafts, waiting to be resolved, to fetch.CompletionStage<Set> in which the result of its completion contains a
Set that contains the matching drafts if any exist, otherwise empty.@Nonnull java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> save(@Nonnull WaitingToBeResolvedTransitions draft)
draft - the draft that should be persisted.CompletionStage containing an optional with the created resource if successful otherwise an
empty optional.@Nonnull java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> delete(@Nonnull java.lang.String key)
key - the key of the state draft to delete from persistence.CompletionStage containing an optional with the deleted resource if successful otherwise an
empty optional.