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 TypeMethodDescriptionvoidComplete with failure theDurablePromise.voidComplete 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:
-