Resonate Basic Durable World Usage Java

Use when writing the body of a Java durable function — any method registered with r.register or passed as a method reference to ctx.run. Core patterns for the Context API surface — the Context first-parameter signature, Context APIs (ctx.run, ctx.rpc, ctx.sleep, ctx.promise, ctx.detached, ResonateFuture.await), per-call options via ctx.options(new Opts()), context accessors (ctx.info), type-keyed dependency injection (ctx.getDependency), retry policies, dispatch-then-await fan-out, and the replay model. For multi-stage sleep timers, countdowns, and the cron Schedule API see resonate-durable-sleep-scheduled-work-java. Requires Java 21+ (virtual threads). Verified against the resonatehq-examples/*-java repos and develop/java.mdx (docs PR

resonatehq 965c06d 16.8 KB Updated

File contents

resonatehq/resonate-skills/tree/main/resonate-basic-durable-world-usage-java commit 965c06db76

Frequently asked questions

npx skillmds@latest add resonatehq/resonate-basic-durable-world-usage-java