public class UnresolvedTransitionsServiceImpl extends java.lang.Object implements UnresolvedTransitionsService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CUSTOM_OBJECT_CONTAINER_KEY |
| Constructor and Description |
|---|
UnresolvedTransitionsServiceImpl(StateSyncOptions baseSyncOptions) |
| 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.
|
public static final java.lang.String CUSTOM_OBJECT_CONTAINER_KEY
public UnresolvedTransitionsServiceImpl(@Nonnull
StateSyncOptions baseSyncOptions)
@Nonnull public java.util.concurrent.CompletionStage<java.util.Set<WaitingToBeResolvedTransitions>> fetch(@Nonnull java.util.Set<java.lang.String> keys)
UnresolvedTransitionsServiceSet will be returned in the returned future.fetch in interface UnresolvedTransitionsServicekeys - 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 public java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> save(@Nonnull WaitingToBeResolvedTransitions draft)
UnresolvedTransitionsServicesave in interface UnresolvedTransitionsServicedraft - the draft that should be persisted.CompletionStage containing an optional with the created resource if
successful otherwise an empty optional.@Nonnull public java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolvedTransitions>> delete(@Nonnull java.lang.String key)
UnresolvedTransitionsServicedelete in interface UnresolvedTransitionsServicekey - the key of the state draft to delete from persistence.CompletionStage containing an optional with the deleted resource if
successful otherwise an empty optional.