Package dev.restate.sdk.core
Class RestateEndpoint
java.lang.Object
dev.restate.sdk.core.RestateEndpoint
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
Interface to abstract setting the logging context variables. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceDefinitionFactory
<Object, Object> discoverServiceDefinitionFactory
(Object service) Resolve the code generatedServiceDefinitionFactory
handleDiscoveryRequest
(String acceptContentType) static RestateEndpoint.Builder
newBuilder
(EndpointManifestSchema.ProtocolMode protocolMode) resolve
(String contentType, String componentName, String handlerName, RequestIdentityVerifier.Headers headers, io.opentelemetry.context.Context otelContext, RestateEndpoint.LoggingContextSetter loggingContextSetter, @Nullable Executor syscallExecutor)
-
Method Details
-
resolve
public ResolvedEndpointHandler resolve(String contentType, String componentName, String handlerName, RequestIdentityVerifier.Headers headers, io.opentelemetry.context.Context otelContext, RestateEndpoint.LoggingContextSetter loggingContextSetter, @Nullable Executor syscallExecutor) throws ProtocolException - Throws:
ProtocolException
-
handleDiscoveryRequest
public RestateEndpoint.DiscoveryResponse handleDiscoveryRequest(String acceptContentType) throws ProtocolException - Throws:
ProtocolException
-
newBuilder
-
discoverServiceDefinitionFactory
public static ServiceDefinitionFactory<Object,Object> discoverServiceDefinitionFactory(Object service) Resolve the code generatedServiceDefinitionFactory
-