Package dev.restate.sdk
Interface DurablePromiseHandle<T>
public interface DurablePromiseHandle<T>
This class represents a handle to an
DurablePromise
created in another handler.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Complete with failure theDurablePromise
.void
Complete with success theDurablePromise
.
-
Method Details
-
resolve
Complete with success theDurablePromise
.- Parameters:
payload
- the result payload.- Throws:
IllegalStateException
- See Also:
-
reject
Complete with failure theDurablePromise
.- Parameters:
reason
- the rejection reason. MUST NOT be null.- Throws:
IllegalStateException
- See Also:
-