Package dev.restate.sdk
Interface RestateService
-
- All Superinterfaces:
io.grpc.BindableService,dev.restate.sdk.common.BlockingService,dev.restate.sdk.common.Service
public interface RestateService extends dev.restate.sdk.common.BlockingServiceMarker interface for Restate services implemented using theRestateContextinterface.Error handling
The error handling of Restate services works as follows:- When throwing
TerminalException, the failure will be used as invocation response error value - When throwing any other type of exception, the failure is considered "non-terminal" and the runtime will retry it, according to its configuration
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RestateContextrestateContext()
-
-
-
Method Detail
-
restateContext
default RestateContext restateContext()
- Returns:
- an instance of the
RestateContext.
-
-