Package kalix.javasdk.view
Interface ViewOptions
- All Superinterfaces:
kalix.javasdk.impl.ComponentOptions
public interface ViewOptions
extends kalix.javasdk.impl.ComponentOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ViewOptions
defaults()
Create default options for a view.withForwardHeaders
(Set<String> headers) Ask Kalix to forward these headers from the incoming request as metadata headers for the incoming commands.
-
Method Details
-
defaults
Create default options for a view. -
forwardHeaders
- Specified by:
forwardHeaders
in interfacekalix.javasdk.impl.ComponentOptions
- Returns:
- the headers requested to be forwarded as metadata (cannot be mutated, use withForwardHeaders)
-
withForwardHeaders
Ask Kalix to forward these headers from the incoming request as metadata headers for the incoming commands. By default, no headers except "X-Server-Timing" are forwarded.- Specified by:
withForwardHeaders
in interfacekalix.javasdk.impl.ComponentOptions
-