Interface ViewOptions

  • All Superinterfaces:
    com.akkaserverless.javasdk.impl.ComponentOptions

    public interface ViewOptions
    extends com.akkaserverless.javasdk.impl.ComponentOptions
    • Method Detail

      • defaults

        static ViewOptions defaults()
        Create default options for a view.
      • forwardHeaders

        java.util.Set<String> forwardHeaders()
        Specified by:
        forwardHeaders in interface com.akkaserverless.javasdk.impl.ComponentOptions
        Returns:
        the headers requested to be forwarded as metadata (cannot be mutated, use withForwardHeaders)
      • withForwardHeaders

        ViewOptions withForwardHeaders​(java.util.Set<String> headers)
        Ask Akka Serverless 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 interface com.akkaserverless.javasdk.impl.ComponentOptions