Package dev.restate.sdk.core
Class EndpointRequestHandler
java.lang.Object
dev.restate.sdk.core.EndpointRequestHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface to abstract setting the logging context variables. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointRequestHandler
forBidiStream
(Endpoint endpoint) static EndpointRequestHandler
forRequestResponse
(Endpoint endpoint) processorForRequest
(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor)
-
Method Details
-
forBidiStream
-
forRequestResponse
-
processorForRequest
public RequestProcessor processorForRequest(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor) throws ProtocolException - Parameters:
coreExecutor
- This executor MUST serialize the execution of all scheduled tasks. For exampleExecutors.newSingleThreadExecutor()
can be used.- Returns:
- The request processor
- Throws:
ProtocolException
- in
-