Class RpcDefinitions

java.lang.Object
io.superdurable.dex.RpcDefinitions

public final class RpcDefinitions extends Object
Provides serializable functional types for strongly typed RPC method references.

Applications normally encounter these types through Client.invokeRPC(RpcDefinitions.RpcFunc1, I). Create a stub with Client.newRpcStub(Class, String), then pass a direct method reference; the SDK inspects the serializable reference to identify the registered Flow instance and RPC method. Do not wrap the reference in another lambda.

OrderFlow stub = client.newRpcStub(OrderFlow.class, "order-123");
OrderStatus status = client.invokeRPC(stub::getStatus);
client.invokeRPC(stub::addNote, "ready to ship");