Package dev.restate.sdk
Class PreviewContext
java.lang.Object
dev.restate.sdk.PreviewContext
Preview of new context features. Please note that the methods in this class may break between
minor releases, use with caution!
In order to use these methods, you MUST enable the preview context, through the
endpoint builders using enablePreviewContext()
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
run
(Context ctx, RetryPolicy retryPolicy, ThrowingRunnable runnable) Deprecated, for removal: This API element is subject to removal in a future version.static <T> T
run
(Context ctx, Serde<T> serde, RetryPolicy retryPolicy, ThrowingSupplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.static void
run
(Context ctx, String name, RetryPolicy retryPolicy, ThrowingRunnable runnable) Deprecated, for removal: This API element is subject to removal in a future version.static <T> T
run
(Context ctx, String name, Serde<T> serde, RetryPolicy retryPolicy, ThrowingSupplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
PreviewContext
public PreviewContext()
-
-
Method Details
-
run
@Deprecated(since="1.2", forRemoval=true) public static <T> T run(Context ctx, String name, Serde<T> serde, RetryPolicy retryPolicy, ThrowingSupplier<T> action) throws TerminalException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TerminalException
-
run
@Deprecated(since="1.2", forRemoval=true) public static void run(Context ctx, String name, RetryPolicy retryPolicy, ThrowingRunnable runnable) throws TerminalException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TerminalException
-
run
@Deprecated(since="1.2", forRemoval=true) public static <T> T run(Context ctx, Serde<T> serde, RetryPolicy retryPolicy, ThrowingSupplier<T> action) throws TerminalException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TerminalException
-
run
@Deprecated(since="1.2", forRemoval=true) public static void run(Context ctx, RetryPolicy retryPolicy, ThrowingRunnable runnable) throws TerminalException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TerminalException
-
Context.run(RetryPolicy, ThrowingRunnable)