Class RpcDefinitions
java.lang.Object
io.superdurable.dex.RpcDefinitions
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");
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents an RPC function with no application input and one output.static interfaceRepresents an RPC function with one input and one output.static interfaceRepresents an RPC procedure with no application input or output.static interfaceRepresents an RPC procedure with one input and no output. -
Method Summary