Package dev.restate.sdk.core
Class EndpointRequestHandler
java.lang.Object
dev.restate.sdk.core.EndpointRequestHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to abstract setting the logging context variables. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointRequestHandlerstatic EndpointRequestHandlerforBidiStream(Endpoint endpoint) Deprecated.static EndpointRequestHandlerforRequestResponse(Endpoint endpoint) Deprecated.The protocol mode is now established on request basis, usecreate(Endpoint)instead.processorForRequest(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor) Deprecated.processorForRequest(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor, boolean supportsBidirectionalStreaming)
-
Method Details
-
create
-
forBidiStream
Deprecated.The protocol mode is now established on request basis, usecreate(Endpoint)instead. -
forRequestResponse
Deprecated.The protocol mode is now established on request basis, usecreate(Endpoint)instead. -
processorForRequest
@Deprecated public RequestProcessor processorForRequest(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor) throws ProtocolException Deprecated.- Throws:
ProtocolException
-
processorForRequest
public RequestProcessor processorForRequest(String path, HeadersAccessor headersAccessor, EndpointRequestHandler.LoggingContextSetter loggingContextSetter, Executor coreExecutor, boolean supportsBidirectionalStreaming) throws ProtocolException - Parameters:
coreExecutor- This executor MUST serialize the execution of all scheduled tasks. For exampleExecutors.newSingleThreadExecutor()can be used.supportsBidirectionalStreaming- true if the server supports bidirectional streaming.- Returns:
- The request processor
- Throws:
ProtocolException
-
create(Endpoint)instead.